Skip to content

Commit

Permalink
Fixed obvious duplication of select_minute docs for select_hour [prop…
Browse files Browse the repository at this point in the history
…s to Zarathu in #rubyonrails]
  • Loading branch information
radar committed Oct 18, 2008
1 parent 3979d26 commit 09b7e35
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions actionpack/lib/action_view/helpers/date_helper.rb
Expand Up @@ -406,15 +406,15 @@ def select_minute(datetime, options = {}, html_options = {})
# ==== Examples
# my_time = Time.now + 6.hours
#
# # Generates a select field for minutes that defaults to the minutes for the time in my_time
# select_minute(my_time)
# # Generates a select field for hours that defaults to the hour for the time in my_time
# select_hour(my_time)
#
# # Generates a select field for minutes that defaults to the number given
# select_minute(14)
# # Generates a select field for hours that defaults to the number given
# select_hour(13)
#
# # Generates a select field for minutes that defaults to the minutes for the time in my_time
# # Generates a select field for hours that defaults to the minutes for the time in my_time
# # that is named 'stride' rather than 'second'
# select_minute(my_time, :field_name => 'stride')
# select_hour(my_time, :field_name => 'stride')
#
def select_hour(datetime, options = {}, html_options = {})
DateTimeSelector.new(datetime, options, html_options).select_hour
Expand Down

0 comments on commit 09b7e35

Please sign in to comment.