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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -