提交 324e5eb5 编写于 作者: N Nicholas Seckar

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
上级 a8a1d11d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册