Permalink
Browse files

Merge pull request #12491 from shamanime/patch-1

Fix wrong variable name used in the select_day method documentation
  • Loading branch information...
2 parents efad3b9 + 97943f1 commit aa9101eb7e9b219a1d628f9ba60f891083350ab2 @rafaelfranca rafaelfranca committed Oct 13, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionview/lib/action_view/helpers/date_helper.rb
@@ -531,7 +531,7 @@ def select_hour(datetime, options = {}, html_options = {})
# 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 @@ def select_hour(datetime, options = {}, html_options = {})
#
# # 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.

0 comments on commit aa9101e

Please sign in to comment.