aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorRay Baxter <ray.baxter@gmail.com>2011-07-16 23:47:06 -0700
committerRay Baxter <ray.baxter@gmail.com>2011-07-16 23:47:06 -0700
commit6970c000e84334f043077efbfe750694aaf1669c (patch)
tree0fdcd6c010b6cedd7a9c2985a69715d14ffc7971 /actionpack/lib/action_view/helpers
parent343a05a64f96195185563abbbc885471b8c42db7 (diff)
downloadrails-6970c000e84334f043077efbfe750694aaf1669c.tar.gz
rails-6970c000e84334f043077efbfe750694aaf1669c.tar.bz2
rails-6970c000e84334f043077efbfe750694aaf1669c.zip
there is no Time.today method, use Time.now
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/date_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb
index 89b49cb660..556145484a 100644
--- a/actionpack/lib/action_view/helpers/date_helper.rb
+++ b/actionpack/lib/action_view/helpers/date_helper.rb
@@ -349,7 +349,7 @@ module ActionView
# 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 @@ module ActionView
# 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)