diff options
Diffstat (limited to 'actionpack/lib')
-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 |