Permalink
Browse files

Fixed obvious duplication of select_minute docs for select_hour [prop…

…s to Zarathu in #rubyonrails]
  • Loading branch information...
1 parent 3979d26 commit 09b7e351316cb87a815678241fc90af549327cf3 @radar radar committed Oct 18, 2008
Showing with 6 additions and 6 deletions.
  1. +6 −6 actionpack/lib/action_view/helpers/date_helper.rb
@@ -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

0 comments on commit 09b7e35

Please sign in to comment.