mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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.
This commit is contained in:
parent
9dbd208562
commit
97943f19b7
1 changed files with 2 additions and 2 deletions
|
@ -531,7 +531,7 @@ module ActionView
|
||||||
# my_date = Time.now + 2.days
|
# my_date = Time.now + 2.days
|
||||||
#
|
#
|
||||||
# # Generates a select field for days that defaults to the day for the date in my_date.
|
# # 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.
|
# # Generates a select field for days that defaults to the number given.
|
||||||
# select_day(5)
|
# 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
|
# # Generates a select field for days that defaults to the day for the date in my_date
|
||||||
# # that is named 'due' rather than 'day'.
|
# # 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
|
# # Generates a select field for days with a custom prompt. Use <tt>prompt: true</tt> for a
|
||||||
# # generic prompt.
|
# # generic prompt.
|
||||||
|
|
Loading…
Reference in a new issue