I have a view with the following:
=f.date_select :start_date, { :start_year => 1990, :end_year => Time.now.year, :discard_day => true, :prompt => true, :order => [ :month, :year] }
Where my :start_year is an attribute on my ActiveRecord model called WorkHistory.
And in my controller I have:
@work_history = WorkHistory.new(params[:work_history])
The start_date never gets set and is always nil. Am I missing something?
Ok I needed to add
attr_accessiblefor it to work.