I want to allow users to enter a day and a month, but not necessarily
a year. i.e. it should be optional.
If I select the day and month, but a blank year and then submit i get:
1 error(s) on assignment of multiparameter attributes
The paramaters regarding the date look like this:
{“date_of_birth(2i)”=>“3”,
“date_of_birth(3i)”=>“17”,“date_of_birth(1i)”=>""}
My select looks like this:
<%= date_select ‘contact’, ‘date_of_birth’, :order => [:day, :month,
:year], :include_blank => true %>
There’s no validation in the model and the databse field is set to
allow null values.
If someone could help me out here it would be most appreciated,
Thanks,
Paul.