From 80cfa76f7de298b5eb3e2b971766c676e9e147b1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 17 Jul 2005 09:54:01 +0000 Subject: Added options hash as third argument to FormHelper#input, so you can do input('person', 'zip', :size=>10) #1719 [jeremye@bsa.ca.gov] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1851 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 2 ++ actionpack/lib/action_view/helpers/active_record_helper.rb | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 842ff278cb..a09380c835 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added options hash as third argument to FormHelper#input, so you can do input('person', 'zip', :size=>10) #1719 [jeremye@bsa.ca.gov] + * Added Base#expires_in(seconds)/Base#expires_now to control HTTP content cache headers #1755 [Thomas Fuchs] * Fixed line number reporting for Builder template errors #1753 [piotr] diff --git a/actionpack/lib/action_view/helpers/active_record_helper.rb b/actionpack/lib/action_view/helpers/active_record_helper.rb index 3cf7ad0d4f..c6d5e6019d 100644 --- a/actionpack/lib/action_view/helpers/active_record_helper.rb +++ b/actionpack/lib/action_view/helpers/active_record_helper.rb @@ -17,8 +17,8 @@ module ActionView # (title is a VARCHAR column and holds "Hello World"): # input("post", "title") => # - def input(record_name, method) - InstanceTag.new(record_name, method, self).to_tag + def input(record_name, method, options = {}) + InstanceTag.new(record_name, method, self).to_tag(options) end # Returns an entire form with input tags and everything for a specified Active Record object. Example -- cgit v1.2.3