mirror of
https://github.com/github/rails.git
synced 2026-01-30 16:58:15 -05:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user