diff options
author | Cheah Chu Yeow <chuyeow@gmail.com> | 2008-06-23 21:32:21 +0800 |
---|---|---|
committer | Cheah Chu Yeow <chuyeow@gmail.com> | 2008-06-23 21:32:21 +0800 |
commit | b5e9badea281ce0c371ff1c00461febe66f4e2b2 (patch) | |
tree | 028a7a4714deb70e7eb531ac0964503a413530ac | |
parent | f9b48f36fa21d96210af59870fcace27f2c45fc8 (diff) | |
download | rails-b5e9badea281ce0c371ff1c00461febe66f4e2b2.tar.gz rails-b5e9badea281ce0c371ff1c00461febe66f4e2b2.tar.bz2 rails-b5e9badea281ce0c371ff1c00461febe66f4e2b2.zip |
It's select_date, not select_datetime - fix copy and paste doc error.
-rwxr-xr-x | actionpack/lib/action_view/helpers/date_helper.rb | 4 |
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 7ed6272898..b44e0f3bf5 100755 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -277,11 +277,11 @@ module ActionView # # # Generates a date select that discards the type of the field and defaults to the date in # # my_date (six days after today) - # select_datetime(my_date_time, :discard_type => true) + # select_date(my_date, :discard_type => true) # # # Generates a date select that defaults to the datetime in my_date (six days after today) # # prefixed with 'payday' rather than 'date' - # select_datetime(my_date_time, :prefix => 'payday') + # select_date(my_date, :prefix => 'payday') # def select_date(date = Date.current, options = {}, html_options = {}) options[:order] ||= [] |