datetime_select (used in Assignment 3)
November 25, 2008 | Filed Under Uncategorized
Note:
The datetime_select helper will accept the option :include_seconds
This is important for getting the date/time selector to see all time elements down to the second. It can be seen here:
http://metricsmine.plugh.org/observation_sets/show/1
It really isn’t that necessary for the application, but it is irritating if you are trying to duplication the operation of the “reference” implementation.
It is possible that eventually you would guess that this option is possible, because datetime_select is extremely similar to time_select, and the docs for time_select describe :include_seconds (see http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M001479).
John
Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment