Allows for 'am/pm' time format in rails (and formtastic) form helpers
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
CHANGELOG
MIT-LICENSE
README
Rakefile move everything to subdir so normal plugin install works Nov 11, 2007
init.rb

README

WARNING - NOT COMPATIBLE WITH RAILS 3.1+:

  Do not use this with Rails 3.1+ ! Instead use the built-in :ampm option:
  * http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html
  * https://github.com/rails/rails/pull/343

12-HOUR TIME PLUGIN

  Not all of us are adept at those exotic, 24-hour clocks. So for the rest of
  us, here's a simple plugin that tacks on an AM/PM selector to the DateHelper
  methods. It also handles the backend, so things are properly stored in
  24-hour format.

USAGE:

  <%= time_select 'event', 'time', {:twelve_hour => true} %>

AUTHORS:

  Nick Muerdter (original code)
  Maurice Aubrey <maurice.aubrey+12hour@gmail.com>

LICENSE:

  Released under the MIT license. See the MIT-LICENSE file included
  with this distribution.

HOMEPAGE:

  http://code.google.com/p/rails-twelve-hour-time-plugin/