Permalink
Browse files

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
  • Loading branch information...
seckar committed Feb 12, 2006
1 parent a8a1d11 commit 324e5eb571c32e3dcdda372eed561620539a6896
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_helper.rb
@@ -143,7 +143,7 @@ def form_for(object_name, object, options = {}, &proc)
# 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

0 comments on commit 324e5eb

Please sign in to comment.