aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/date_helper.rb
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2008-10-18 17:43:14 +1030
committerRyan Bigg <radarlistener@gmail.com>2008-10-18 17:43:14 +1030
commit09b7e351316cb87a815678241fc90af549327cf3 (patch)
tree7d21527ad72a38e59bc7be9f3ebc2fc13219ca11 /actionpack/lib/action_view/helpers/date_helper.rb
parent3979d267522f9aaef92b5f21a65abab5046cefaa (diff)
downloadrails-09b7e351316cb87a815678241fc90af549327cf3.tar.gz
rails-09b7e351316cb87a815678241fc90af549327cf3.tar.bz2
rails-09b7e351316cb87a815678241fc90af549327cf3.zip
Fixed obvious duplication of select_minute docs for select_hour [props to Zarathu in #rubyonrails]
Diffstat (limited to 'actionpack/lib/action_view/helpers/date_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/date_helper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb
index 953a2a9f86..d4d2c6ef53 100644
--- a/actionpack/lib/action_view/helpers/date_helper.rb
+++ b/actionpack/lib/action_view/helpers/date_helper.rb
@@ -406,15 +406,15 @@ module ActionView
# ==== 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