date_select tag doesn't get stored in my rails app -


I'm trying to select the user's birthday:

  & lt ;% Form_for: user ,: url = & gt; Users_path do F | | & Gt%; & Lt;% = f.date_select: Birthday, start_year = & gt; 2010,: &_ur => 1920, DISCARD_DE = & gt; True% & gt; & Lt;% end% & gt;  

The problem is that it has not been saved ... The user has a date of birthdate in the table and I call to save it

  @ User = user.new (param [user]) @ user b ave  

What could be the problem?

Thanks Macketty

The problem is that the day you choose Leave it See the HTML code of date_select tag. You will get clues from there.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -