diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-17 09:54:01 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-17 09:54:01 +0000 |
commit | 80cfa76f7de298b5eb3e2b971766c676e9e147b1 (patch) | |
tree | 6d2e4447fafb3eaac618d3cfb166ab74c92cd8f3 /actionpack/lib/action_view | |
parent | 9870396ed13b720980957e848e4ce65582fd0d0b (diff) | |
download | rails-80cfa76f7de298b5eb3e2b971766c676e9e147b1.tar.gz rails-80cfa76f7de298b5eb3e2b971766c676e9e147b1.tar.bz2 rails-80cfa76f7de298b5eb3e2b971766c676e9e147b1.zip |
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
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/active_record_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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") => # <input id="post_title" name="post[title]" size="30" type="text" value="Hello World" /> - 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 |