aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/active_record_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-01-21 23:46:56 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-01-21 23:46:56 +0000
commit5436ffa840f26116b14631d5efcd5d17f27f947b (patch)
tree3b9fb99bae16cc4f07f75c702919ae689061c1c9 /actionpack/lib/action_view/helpers/active_record_helper.rb
parent1facce6c244713bb88e4ed70222f0d42b30736de (diff)
downloadrails-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/lib/action_view/helpers/active_record_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/active_record_helper.rb2
1 files changed, 1 insertions, 1 deletions
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)