Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails date/time picker (hopefully jquery) [closed]

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.

like image 673
riley Avatar asked Dec 11 '09 23:12

riley


2 Answers

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.

like image 115
liangzan Avatar answered Sep 28 '22 16:09

liangzan


Here is a good write up on one option.

http://milesich.com/timepicker/

image
(source: milesich.com)

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.

like image 34
RSolberg Avatar answered Sep 28 '22 16:09

RSolberg