SaneDatetimes monkeypatches ActiveRecord to allow for a new format of multi-param input for TimeS, and includes a sort of hacked Formtastic plugin that gives you two text fields. One for the date and one for the time.
Ruby
Pull request Compare This branch is 9 commits ahead of amiel:master.
Latest commit 92d061b Aug 25, 2011 @adrianpike fixingate
Failed to load latest commit information.
lib fixingate Aug 25, 2011
test initial commit Oct 23, 2009
MIT-LICENSE initial commit Oct 24, 2009
README Fix the readme, and adjust the to_param Aug 31, 2010
Rakefile initial commit Oct 24, 2009
init.rb it vorks for rails 3! Nov 24, 2010

README

SaneDatetimes
=============

Rails normally gives you an ugly set of select fields for datetime select. SaneDatetimes monkeypatches ActiveRecord to allow for a new format of multi-param input for Times, and includes a sort of hacked Formtastic plugin that gives you two text fields. One for the date and one for the time. 

Examples
========

<%= form.input :depart_at, :as => :sane_datetime %>
<%= form.input :depart_at, :as => :sane_datetime, :input_html => { :date => { :class => 'datepicker' } } %>


Credits
=======

Originally forked from Amiel Martin's sane_datetimes, I changed the Time selector to a single dropdown in 30-minute incremenets, and brought it up to work with Rails 2.3.8 and Ruby 1.9+.

Copyright (c) 2010 Adrian Pike, released under the MIT license