Assign the default value you want, in the new action. date_select()
will do the right thing with it in the view.
e.g.
def new
@calendar_event = CalendarEvent.new :start_date =>
"2006-01-01".to_date
end
Are you sure you want the default year to be 2006, and not the current
year?
e.g.
def new
@calendar_event = CalendarEvent.new :start_date =>
Time.parse("#{Time.today.year}-01-01")
end
Ciao,
Sheldon.