Ruby on Rails Friday, July 30, 2010

Hi,

It is simple, but it's not straight forward.
You just need to discard the year from select and add the proper name to
the text field for year.
You can refer it here for better example with code
http://rubyonrailshacks.com/2010/07/how-to-modify-date_select-to-show-text-field-for-year/

regards,
Sur
http://rubyonrailshacks.com

Cam wrote:
> Hey all,
>
> Using date_select in a form, how can I make the Year field a
> text_field instead of a select? It looks like it will take more than a
> simple modification of the date_select method.
>
> Thanks in advance.
>
> Cam

--
Posted via http://www.ruby-forum.com/.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment