From 5436ffa840f26116b14631d5efcd5d17f27f947b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Jan 2006 23:46:56 +0000 Subject: 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 --- actionpack/lib/action_view/helpers/active_record_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view') 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) -- cgit v1.2.3