aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorJefferson Queiroz Venerando <jefferson@shamani.me>2013-10-10 10:34:14 -0300
committerJefferson Queiroz Venerando <jefferson@shamani.me>2013-10-10 10:34:14 -0300
commit97943f19b764e10c655846a47530122d861007b8 (patch)
tree0de657eb94c98790ecfbce21cf48bf4d4a47eab0 /actionview
parent9dbd208562ccd3d68009a72d37cbfe29b94f98c4 (diff)
downloadrails-97943f19b764e10c655846a47530122d861007b8.tar.gz
rails-97943f19b764e10c655846a47530122d861007b8.tar.bz2
rails-97943f19b764e10c655846a47530122d861007b8.zip
Fix wrong variable name used in the select_day method documentation
The variable name created in the example is `my_date`, the methods were using `my_time` instead.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/date_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/date_helper.rb b/actionview/lib/action_view/helpers/date_helper.rb
index 8e1aea50a9..d7e8e99200 100644
--- a/actionview/lib/action_view/helpers/date_helper.rb
+++ b/actionview/lib/action_view/helpers/date_helper.rb
@@ -531,7 +531,7 @@ module ActionView
# my_date = Time.now + 2.days
#
# # Generates a select field for days that defaults to the day for the date in my_date.
- # select_day(my_time)
+ # select_day(my_date)
#
# # Generates a select field for days that defaults to the number given.
# select_day(5)
@@ -541,7 +541,7 @@ module ActionView
#
# # Generates a select field for days that defaults to the day for the date in my_date
# # that is named 'due' rather than 'day'.
- # select_day(my_time, field_name: 'due')
+ # select_day(my_date, field_name: 'due')
#
# # Generates a select field for days with a custom prompt. Use <tt>prompt: true</tt> for a
# # generic prompt.