From e5f392ce8ffe2a7fd3bd920132c4cdba8d207a4a Mon Sep 17 00:00:00 2001 From: Ryan Bates Date: Sat, 10 Apr 2010 11:05:42 -0700 Subject: fields_for returns block result when outside ERB Signed-off-by: wycats --- actionpack/lib/action_view/helpers/form_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/helpers/form_helper.rb') diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 80a00b2a10..46b2902fb1 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -528,7 +528,7 @@ module ActionView builder = options[:builder] || ActionView::Base.default_form_builder - with_output_buffer do + capture do yield builder.new(object_name, object, self, options, block) end end -- cgit v1.2.3