SooDesuNe
SooDesuNe

Reputation: 10030

Ruby on Rails User Date Input

I've been search around for a good gem/plug-in to allow intuitive user input of a date(i.e. select a date from a pop-up calendar).

calendardateselect looks really good, but it's no longer in active development, and no longer installs correctly.

I found a few others, but they were all quite stale. What are Stack Overflow users using for date input in rails?

Per @bjg and @Fortuity jQuery UI is the direction I decided to go. Getting it up and running was a little complex, so I wrote a short how-to for others.

Upvotes: 2

Views: 4141

Answers (2)

Daniel Kehoe
Daniel Kehoe

Reputation: 10952

The jQuery UI Datepicker has been popular among Rails developers since Ryan Bates produced a screencast showing how to use it in a Rails application.

For a Rails plugin that uses the jQuery UI Datepicker, look at:

Ryan's screencast includes hints for how to use it with Rails 3. The table_builder plugin is for Rails 2.3. I haven't yet seen a datepicker plugin for Rails 3 but it's easy to implement without a plugin.

Upvotes: 6

bjg
bjg

Reputation: 7477

If you are willing to consider JQuery in your application then the very actively supported jquery-ui project has a datepicker. See here for details

Upvotes: 1

Related Questions