diff options
author | Lennart Fridén <lennart@devl.se> | 2011-12-11 22:19:11 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-11 22:54:28 +0100 |
commit | dc43e402a10d10f72f3051c1f33bdc335a54d995 (patch) | |
tree | 67563a8dc01398da13304caad329678fbfe33c8b /actionpack/CHANGELOG.md | |
parent | a8f2b203b45bfa34785b3c411079e59f60c52cac (diff) | |
download | rails-dc43e402a10d10f72f3051c1f33bdc335a54d995.tar.gz rails-dc43e402a10d10f72f3051c1f33bdc335a54d995.tar.bz2 rails-dc43e402a10d10f72f3051c1f33bdc335a54d995.zip |
Added :use_two_digit_numbers option [Lennart Fridén & Kim Persson]
Added use_two_digit_numbers select_tag option for displaying months and days with leading zeros without affecting the values (useful for e.g. ISO-style dates, 2011-08-01).
Signed-off-by: José Valim <jose.valim@gmail.com>
Conflicts:
actionpack/CHANGELOG.md
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r-- | actionpack/CHANGELOG.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 29b93da50b..b354f05960 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -10,6 +10,9 @@ <%= f.button %> <% end %> +* Date helpers accept a new option, `:use_two_digit_numbers = true`, that renders select boxes for months and days with a leading zero without changing the respective values. + For example, this is useful for displaying ISO8601-style dates such as '2011-08-01'. *Lennart Fridén and Kim Persson* + * Make ActiveSupport::Benchmarkable a default module for ActionController::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH* * Deprecated implied layout lookup in controllers whose parent had a explicit layout set: |