diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-28 00:09:14 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-28 00:09:14 -0300 |
commit | 30c67000cab2284689bd93f25937c088d1ec6e74 (patch) | |
tree | 729b123ccb87f32a1626817f3966629417420337 /actionview | |
parent | f8db6ba440c2a6ebd6c66f6390ba60c74839dabb (diff) | |
parent | a314879a96a92cfdd06b0ea998fe3201fad604fa (diff) | |
download | rails-30c67000cab2284689bd93f25937c088d1ec6e74.tar.gz rails-30c67000cab2284689bd93f25937c088d1ec6e74.tar.bz2 rails-30c67000cab2284689bd93f25937c088d1ec6e74.zip |
Merge pull request #21790 from yui-knk/fix_doc_date_field
[ci skip] Fix which method `FormHelper#date_field` try to call
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb index 610f5c0b4a..2a367b85af 100644 --- a/actionview/lib/action_view/helpers/form_helper.rb +++ b/actionview/lib/action_view/helpers/form_helper.rb @@ -1038,7 +1038,7 @@ module ActionView # date_field("user", "born_on") # # => <input id="user_born_on" name="user[born_on]" type="date" /> # - # The default value is generated by trying to call "to_date" + # The default value is generated by trying to call +strftime+ with "%Y-%m-%d" # on the object's value, which makes it behave as expected for instances # of DateTime and ActiveSupport::TimeWithZone. You can still override that # by passing the "value" option explicitly, e.g. |