https://github.com/amiel/sane_datetimes
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.
https://github.com/amiel/sane_datetimes
Last synced: about 1 year ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/amiel/sane_datetimes
- Owner: amiel
- License: mit
- Created: 2009-10-24T01:14:02.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2009-10-24T01:15:40.000Z (over 16 years ago)
- Last Synced: 2024-10-03T12:33:08.211Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 76.2 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
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' } } %>
Copyright (c) 2009 Amiel martin, released under the MIT license