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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Craig White at Nov 16, 2011 at 8:45 pm

    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

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to [email protected].
    To unsubscribe from this group, send email to [email protected].
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • AJ Chen at Nov 16, 2011 at 11:10 pm
    thanks. that works. -aj
    On Nov 16, 12:45 pm, Craig White wrote:
    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...

    Craig
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to [email protected].
    To unsubscribe from this group, send email to [email protected].
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedNov 16, '11 at 8:38a
activeNov 16, '11 at 11:10p
posts3
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

AJ Chen: 2 posts Craig White: 1 post

People

Translate

site design / logo © 2023 Grokbase