1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #12491 from shamanime/patch-1

Fix wrong variable name used in the select_day method documentation
This commit is contained in:
Rafael Mendonça França 2013-10-13 10:13:03 -07:00
commit aa9101eb7e

View file

@ -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.