How to create a custom time select form element?

Andrew
Sat, 13 Aug 2011 20:34:10 -0000

Hello,

I would like to turn a regular 24 hour time select input into a 12 hour time
select with an additional AM/PM select input. For example:

Before:

    [00..23] : [00..59]

After:

    [1..12] : [00..59] [AM,PM]

I''m really surprised that this sort of thing doesn''t come
standard in Rails. Has this been
done before? Is there a plugin or gem that I can install? If not, how can I
create this from scratch?

Thanks,
Andrew

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/fZijJFXm3XsJ.
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.