Rails date/time picker (hopefully jquery)

riley picture riley · Dec 12, 2009 · Viewed 24.8k times · Source

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.

Answer

liangzan picture liangzan · Jun 14, 2010

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

This is the best date time picker I've seen. milesich is not actively maintained anymore, and has bugs if the input field is blank. Sure there are 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 minimal CSS to add. I highly recommend his work.