Hi everybody, I''m newbie to rails. And I want to display a drop down like. Hours : Minutes : AM\PM where, Hours - 00 , 01 ............. 12, Minutes - 00, 15, 30, 45 AM/PM Is it possible. But I tried like. <%= time_select (:object, :method, ampm => true, interval => 15 ) %> But its not working. Can anyone help. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jun 18, 2007, at 1:12 AM, Veera Sundaravel wrote:> > Hi everybody, > > I''m newbie to rails. And I want to display a drop down like. > > Hours : Minutes : AM\PM > > > where, Hours - 00 , 01 ............. 12, > Minutes - 00, 15, 30, 45 > AM/PM > > Is it possible. But I tried like. > > > <%= time_select (:object, :method, ampm => true, interval => 15 ) %> > > But its not working. Can anyone help. > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
How strange my text didn''t show. I beleive that this covers it early on: http://railscasts.com/episodes/32 Cheers, Zach Inglis → Blog -- http://www.zachinglis.com → Company -- http://www.lt3media.com → Portfolio -- http://portfolio.zachinglis.com On Jun 18, 2007, at 5:47 AM, Zach Inglis // LT3media wrote:> > > On Jun 18, 2007, at 1:12 AM, Veera Sundaravel wrote: > >> >> Hi everybody, >> >> I''m newbie to rails. And I want to display a drop down like. >> >> Hours : Minutes : AM\PM >> >> >> where, Hours - 00 , 01 ............. 12, >> Minutes - 00, 15, 30, 45 >> AM/PM >> >> Is it possible. But I tried like. >> >> >> <%= time_select (:object, :method, ampm => true, interval => 15 ) %> >> >> But its not working. Can anyone help. >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---