I’m trying to let the user select his birthday with:
<% form_for :user, :url => users_path do |f| %>
<%= f.date_select :birthday, :start_year => 2010 , :end_year =>1920, :discard_day => true %>
<% end %>
The problem is that it doesn’t get saved… birthday is a date field in the users table and to save it I call
@user = User.new(params[:user])
@user.save
what could be the problem?
Thanks
Maechi
The problem is due to discard day option that you choose.
See the html code of date_select tag.You will get clue from there.