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 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks for your reply and for the tutorial. The code is not showing on the page though. http://rubyonrailshacks.com/2010/07/how-to-modify-date_select-to-show-text-field-for-year/ Cheers, Cam On Jul 31, 12:11 am, Sur Max <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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 codehttp://rubyonrailshacks.com/2010/07/how-to-modify-date_select-to-show... > > regards, > Surhttp://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 viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Hi, Seems the color highlighting plugin is broken in Safari. Please see it in FireFox. regards, Sur http://rubyonrailshacks.com Cam wrote:> Thanks for your reply and for the tutorial. The code is not showing on > the page though. > http://rubyonrailshacks.com/2010/07/how-to-modify-date_select-to-show-text-field-for-year/ > > Cheers, > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I see it now in Safari. Thanks again. The tutorial was very clear and straight forward. Worked very well. Cam On Jul 31, 2:25 pm, Sur Max <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > Seems the color highlighting plugin is broken in Safari. > Please see it in FireFox. > > regards, > Surhttp://rubyonrailshacks.com > > Cam wrote: > > Thanks for your reply and for the tutorial. The code is not showing on > > the page though. > >http://rubyonrailshacks.com/2010/07/how-to-modify-date_select-to-show... > > > Cheers, > > > Cam > > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Hi, Yes, actually I had an exact requirement a while ago and when I saw you asking for the same thing, I thought it would be better to blog it down so it can be easily accessible for everyone. regards, Sur http://rubyonrailshacks.com http://expressica.com Sur Max wrote:> Hi, > > Seems the color highlighting plugin is broken in Safari. > Please see it in FireFox. > > regards, > Sur > http://rubyonrailshacks.com > > > Cam wrote: >> Thanks for your reply and for the tutorial. The code is not showing on >> the page though. >> http://rubyonrailshacks.com/2010/07/how-to-modify-date_select-to-show-text-field-for-year/ >> >> Cheers, >> >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.