Links
Time Picker
Categories
Time Picker
TimePicker
====
Installation
Use either
script/plugin install svn://rubyforge.org/var/svn/timepicker/trunk
or
svn propset svn:externals ‘timepicker svn://rubyforge.org/var/svn/timepicker/trunk’ vendor/plugins
Usage
The usage of time_picker follows closely of that of ActionView::Helpers::DateHelper.
Once installed, use it in your views.
Right now, the only method is
time_picker(datetime, options = {})
Examples
To use a time_picker with the default 24 hour format, 30 minute step,
time_picker(Time.now, {:minute_step => 30})
To use a time_picker with 12 hour format, 30 minute step,
time_picker(Time.now, {:time_format => ‘12’, :minute_step => 30})
Other options (same as ActionView::Helpers::DateHelper) are:
- :prefix
- :field_name
- :time_separator
Vitals
| Home | http://rubyforge.org/projects/timepicker/ |
|---|---|
| Repository | http://timepicker.rubyforge.org/svn/trunk/ |
| License | Rails' (MIT) |
| Tags |
time timepicker wqe
|
| Rating | (10 votes) |
| Owner | Thong Kuah |
| Created | 17 August 2007 |
Comments
-
not works with me.
I have an error msg : undefined method `time_picker'
any idea ?
-
Check out this really compact time_select component I developed!
http://www.tonyamoyal.com/blog/?p=19

