Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 80cfa76f7de298b5eb3e2b971766c676e9e147b1 1 parent 9870396
@dhh dhh authored
View
2  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]
View
4 actionpack/lib/action_view/helpers/active_record_helper.rb
@@ -17,8 +17,8 @@ module ActiveRecordHelper
# (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
Please sign in to comment.
Something went wrong with that request. Please try again.