In my model, birthday is of type Date. The following date_select field
always displays the current day in the browser even though :birthday
has a different value. Any idea?
<%= date_select(:profile, :birthday) %>
thanks,
aj
In my model, birthday is of type Date. The following date_select field
always displays the current day in the browser even though :birthday
has a different value. Any idea?
<%= date_select(:profile, :birthday) %>
thanks,
aj
On Nov 15, 2011, at 9:08 AM, AJ Chen wrote:
In my model, birthday is of type Date. The following date_select field
always displays the current day in the browser even though :birthday
has a different value. Any idea?
<%= date_select(:profile, :birthday) %>
try to use variables instead of symbols…
<%= date_select(‘profile’, ‘birthday’ %>
none of the examples in the API show usage of symbols
http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#method-i-date_select
Craig
thanks. that works. -aj
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs