diff options
author | Marcel Molina <marcel@vernix.org> | 2007-11-06 23:00:15 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-11-06 23:00:15 +0000 |
commit | 4e7d332baf800a526b1cb91be783d3df1d88fd20 (patch) | |
tree | ba6e84c233662146b2697a5addd1a57ab76b447e | |
parent | 563d9efdf35d2bf8ea3640e720519b4bb1a30778 (diff) | |
download | rails-4e7d332baf800a526b1cb91be783d3df1d88fd20.tar.gz rails-4e7d332baf800a526b1cb91be783d3df1d88fd20.tar.bz2 rails-4e7d332baf800a526b1cb91be783d3df1d88fd20.zip |
Document :minute_step option for time_select. Closes #8814 [brupm]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/CHANGELOG | 2 | ||||
-rwxr-xr-x | actionpack/lib/action_view/helpers/date_helper.rb | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 59b45f2df7..599f0e702b 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Document :minute_step option for time_select. Closes #8814 [brupm] + * Explain how to use the :href option for link_to_remote to degrade gracefully in the absence of JavaScript. Closes #8911 [vlad] * Disambiguate :size option for text area tag. Closes #8955 [redbeard] diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb index a0405a5105..97b77bd165 100755 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -175,6 +175,9 @@ module ActionView # # the submission_time attribute. # time_select("entry", "submission_time", :include_seconds => true) # + # # You can set the :minute_step to 15 which will give you: 00, 15, 30 and 45. + # time_select 'game', 'game_time', {:minute_step => 15} + # # The selects are prepared for multi-parameter assignment to an Active Record object. # # Note: If the day is not included as an option but the month is, the day will be set to the 1st to ensure that all month |