mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
9870396ed1
commit
80cfa76f7d
2 changed files with 4 additions and 2 deletions
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue