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/lib/action_view/helpers/active_record_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_view/helpers/active_record_helper.rb') 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