Skip to main content

Rails date/time picker (hopefully jquery)


Looking for a date and datetime picker that will integrate fairly seamlessly with Rails. I'm sure some people must be using something similar. I have tried





  • the unobtrusive date picker plugin but it breaks with the latest release of Rails.





  • calendar date select plugin uses prototype which I have removed from my app and don't want to add back.





  • active calendar plugin - broken with latest Rails and hacked to fix but doesn't fill out the text fields when a model is loaded.





Thanks very much.


Source: Tips4allCCNA FINAL EXAM

Comments

  1. http://trentrichardson.com/examples/timepicker/

    This is the best date time picker I've seen. milesich is not actively maintained anymore. There're bugs if the input field is blank. Sure there're solutions(in the comments), but if you look at the code, its one ugly hack.

    Trent's implementation is much cleaner. Shorter, easy to understand and mimimal CSS to add. I highly recommend his work

    ReplyDelete
  2. Here is a good write up on one option.

    http://milesich.com/timepicker/



    There is another post here on StackOverflow on a similar topic. You are looking for something more specific to rails than the OP of this one, but it still has some good info.

    ReplyDelete
  3. The Any+Time(TM) Datepicker/Timepicker AJAX Calendar Widget uses jQuery and should work seamlessly with Rails. It provides many date/time formatting options and requires only a single line of your own JS code to attach to any text field. It also aims to minimize the number of mouse clicks necessary to select a date and/or time, and provides WAI-ARIA keyboard accessibility for users without a mouse. Did I mention Time Zone support and custom Styles/Themes using CSS and/or jQuery UI? :-)

    ReplyDelete
  4. If you happen to be using Twitter bootstrap, here's a great datepicker to go along with it:

    https://github.com/eternicode/bootstrap-datepicker

    ReplyDelete

Post a Comment

Popular posts from this blog

Wildcards in a hosts file

I want to setup my local development machine so that any requests for *.local are redirected to localhost . The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local , site2.local etc, and have them all resolve to localhost , while Apache serves a different site accordingly.