How do I connect jQuery Datepicker to my Ruby on Rails form? How do I connect jQuery Datepicker to my Ruby on Rails form? ruby-on-rails ruby-on-rails

How do I connect jQuery Datepicker to my Ruby on Rails form?


Ryan Bates has a really great explanation of all of this:

http://railscasts.com/episodes/213-calendars (older version you can watch for free)http://railscasts.com/episodes/213-calendars-revised (revised version you need a subscription to watch)


As of now, I'd recommend jquery-ui-rails gem above the other answers for the simple reason you can include only the datepicker assets without the entire jquery ui library!

https://github.com/joliss/jquery-ui-rails