From c80c6364d93bd9caa262cc0d3f9a507d2d2d3af7 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Thu, 13 Jul 2006 03:25:17 +0000 Subject: Provide support for decimal columns to form helpers. Closes #5672. [dave@pragprog.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4609 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 2 ++ actionpack/lib/action_view/helpers/active_record_helper.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 74bf955e92..a8f316cbca 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Provide support for decimal columns to form helpers. Closes #5672. [dave@pragprog.com] + * Update documentation for erb trim syntax. #5651 [matt@mattmargolis.net] * Pass :id => nil or :class => nil to error_messages_for to supress that html attribute. #3586 [olivier_ansaldi@yahoo.com, sebastien@goetzilla.info] diff --git a/actionpack/lib/action_view/helpers/active_record_helper.rb b/actionpack/lib/action_view/helpers/active_record_helper.rb index a7bfb77db3..7a1aeff342 100644 --- a/actionpack/lib/action_view/helpers/active_record_helper.rb +++ b/actionpack/lib/action_view/helpers/active_record_helper.rb @@ -161,7 +161,7 @@ module ActionView to_input_field_tag(field_type, options) when :text to_text_area_tag(options) - when :integer, :float + when :integer, :float, :decimal to_input_field_tag("text", options) when :date to_date_select_tag(options) -- cgit v1.2.3