Permalink
Browse files

there is no Time.today method, use Time.now

  • Loading branch information...
raybaxter authored and fxn committed Jul 17, 2011
1 parent 8ff3ebf commit 28237d625c9300e11b9144f8a117b887a03efa60
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/date_helper.rb
@@ -349,7 +349,7 @@ def select_datetime(datetime = Time.current, options = {}, html_options = {})
# If anything is passed in the html_options hash it will be applied to every select tag in the set.
#
# ==== Examples
- # my_date = Time.today + 6.days
+ # my_date = Time.now + 6.days
#
# # Generates a date select that defaults to the date in my_date (six days after today).
# select_date(my_date)
@@ -505,7 +505,7 @@ def select_hour(datetime, options = {}, html_options = {})
# Override the field name using the <tt>:field_name</tt> option, 'day' by default.
#
# ==== Examples
- # my_date = Time.today + 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.
# select_day(my_time)

0 comments on commit 28237d6

Please sign in to comment.