diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2015-01-25 07:11:41 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2015-01-25 07:11:41 +0000 |
commit | 921915cd95fd8e5bd654e56bb12eaf08dab493c6 (patch) | |
tree | 06b2fd8401df3402563f977f353a5879eff6ea5b /actionview | |
parent | 3327cd3f61a22a5834dcbf9bd24ecbc3a23de3de (diff) | |
parent | d8bf32231e3eba5b43fd1fd55789cce2bf66d8db (diff) | |
download | rails-921915cd95fd8e5bd654e56bb12eaf08dab493c6.tar.gz rails-921915cd95fd8e5bd654e56bb12eaf08dab493c6.tar.bz2 rails-921915cd95fd8e5bd654e56bb12eaf08dab493c6.zip |
Merge pull request #18677 from yachibit/docs_for_datetime_select
Add missing options to `datetime_select` [ci skip]
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/date_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionview/lib/action_view/helpers/date_helper.rb b/actionview/lib/action_view/helpers/date_helper.rb index 4b4f0ae577..46ce7cf0be 100644 --- a/actionview/lib/action_view/helpers/date_helper.rb +++ b/actionview/lib/action_view/helpers/date_helper.rb @@ -177,6 +177,8 @@ module ActionView # and +:name+ (string). A format string would be something like "%{name} (%<number>02d)" for example. # See <tt>Kernel.sprintf</tt> for documentation on format sequences. # * <tt>:date_separator</tt> - Specifies a string to separate the date fields. Default is "" (i.e. nothing). + # * <tt>:time_separator</tt> - Specifies a string to separate the time fields. Default is "" (i.e. nothing). + # * <tt>:datetime_separator</tt>- Specifies a string to separate the date and time fields. Default is "" (i.e. nothing). # * <tt>:start_year</tt> - Set the start year for the year select. Default is <tt>Date.today.year - 5</tt> if # you are creating new record. While editing existing record, <tt>:start_year</tt> defaults to # the current selected year minus 5. |