My model has the following code:
attr_accessor :expiry_date validates_presence_of :expiry_date, :on => :create, :message => "can't be blank"
and in my opinion:
<%= date_select :account, :expiry_date, :discard_day => true, :start_year => Time.now.year, :end_year => Time.now.year + 15, :order => [:month, :year] %>
However, when I submit my form, I get:
ActiveRecord::MultiparameterAssignmentErrors in SignupController
Any ideas on what might be the issue? I looked at # 93277 without joy, so I'm stuck.
Adding a day to the selection does not resolve the problem.
Ultimately, what I'm trying to accomplish is a property of a model that is not stored in the database, but verified. This already works for some other simple string fields in the same model, not: expiry_date
Any ideas?
source share