Currently im using date_select to select a day and month of the year.
But i’m hiding the year since it is not important. But when i try to
save to the database the controller complains that the year is
missing. Can i set the year to for example Time.now.year in the model?
Hi, it seems that date(1i) is missing and that is why i get the error.
But i would like to set the year in the model and use create in the
controller instead of new where i can manually set the year.
ActiveRecord::MultiparameterAssignmentErrors in
TimetrackController#create
1 error(s) on assignment of multiparameter attributes