diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-02-12 00:41:50 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-02-12 00:41:50 +0000 |
commit | 324e5eb571c32e3dcdda372eed561620539a6896 (patch) | |
tree | 162dd886a7cb294d50fb365321463d81edb7a210 /actionpack | |
parent | a8a1d11d77694d6e49552de9291b4bfdb299494f (diff) | |
download | rails-324e5eb571c32e3dcdda372eed561620539a6896.tar.gz rails-324e5eb571c32e3dcdda372eed561620539a6896.tar.bz2 rails-324e5eb571c32e3dcdda372eed561620539a6896.zip |
Fix form_for brokenness due to a shortage of parenthesis
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3575 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 2449629ead..9b949100bb 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -143,7 +143,7 @@ module ActionView # Like collection_select and datetime_select. def fields_for(object_name, object, options = {}, &proc) raise ArgumentError, "Missing block" unless block_given? - yield (options[:builder] || FormBuilder).new(object_name, object, self, options, proc) + yield((options[:builder] || FormBuilder).new(object_name, object, self, options, proc)) end # Returns an input tag of the "text" type tailored for accessing a specified attribute (identified by +method+) on an object |