Skip to content

Commit

Permalink
Document :minute_step option for time_select. Closes #8814 [brupm]
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
Marcel Molina committed Nov 6, 2007
1 parent 563d9ef commit 4e7d332
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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]
Expand Down
3 changes: 3 additions & 0 deletions actionpack/lib/action_view/helpers/date_helper.rb
Expand Up @@ -175,6 +175,9 @@ def date_select(object_name, method, options = {})
# # 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
Expand Down

0 comments on commit 4e7d332

Please sign in to comment.