[Rails] How to create a custom time select form element?
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@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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home