From 324e5eb571c32e3dcdda372eed561620539a6896 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Sun, 12 Feb 2006 00:41:50 +0000 Subject: 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 --- actionpack/lib/action_view/helpers/form_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3