diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-01-21 23:46:56 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-01-21 23:46:56 +0000 |
commit | 5436ffa840f26116b14631d5efcd5d17f27f947b (patch) | |
tree | 3b9fb99bae16cc4f07f75c702919ae689061c1c9 /actionpack | |
parent | 1facce6c244713bb88e4ed70222f0d42b30736de (diff) | |
download | rails-5436ffa840f26116b14631d5efcd5d17f27f947b.tar.gz rails-5436ffa840f26116b14631d5efcd5d17f27f947b.tar.bz2 rails-5436ffa840f26116b14631d5efcd5d17f27f947b.zip |
Treat timestamps like datetimes for scaffolding purposes (closes #3388) [Maik Schmidt]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3457 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG | 2 | ||||
-rw-r--r-- | actionpack/lib/action_view/helpers/active_record_helper.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 820990a69e..633d33a52e 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Treat timestamps like datetimes for scaffolding purposes #3388 [Maik Schmidt] + * Fix IE bug with link_to "something", :post => true #3443 [Justin Palmer] * Extract Test::Unit::TestCase test process behavior into an ActionController::TestProcess module. [Sam Stephenson] diff --git a/actionpack/lib/action_view/helpers/active_record_helper.rb b/actionpack/lib/action_view/helpers/active_record_helper.rb index dccae1db41..828aebf790 100644 --- a/actionpack/lib/action_view/helpers/active_record_helper.rb +++ b/actionpack/lib/action_view/helpers/active_record_helper.rb @@ -141,7 +141,7 @@ module ActionView to_input_field_tag("text", options) when :date to_date_select_tag(options) - when :datetime + when :datetime, :timestamp to_datetime_select_tag(options) when :boolean to_boolean_select_tag(options) |