diff options
author | Ryan Bates <ryan@railscasts.com> | 2010-04-10 11:05:42 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-04-11 19:26:00 -0700 |
commit | e5f392ce8ffe2a7fd3bd920132c4cdba8d207a4a (patch) | |
tree | 84de6c4ae26ebc2e6882c20c7ffbc9ecb7defb5b /actionpack/lib | |
parent | 59c6082d9867572352e2ac2070d5aa9590132ef8 (diff) | |
download | rails-e5f392ce8ffe2a7fd3bd920132c4cdba8d207a4a.tar.gz rails-e5f392ce8ffe2a7fd3bd920132c4cdba8d207a4a.tar.bz2 rails-e5f392ce8ffe2a7fd3bd920132c4cdba8d207a4a.zip |
fields_for returns block result when outside ERB
Signed-off-by: wycats <wycats@gmail.com>
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 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 |