diff options
Diffstat (limited to 'actionpack/lib/action_view/helpers/active_record_helper.rb')
-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 |