From f9937dd04149e62fb834c815c60c5a96c025b240 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Fri, 20 Jan 2006 22:08:41 +0000 Subject: Pass along blocks from render_to_string to render git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 40fa24a696..8a34cd18cf 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -644,8 +644,8 @@ module ActionController #:nodoc: # Renders according to the same rules as render, but returns the result in a string instead # of sending it as the response body to the browser. - def render_to_string(options = nil) #:doc: - result = render(options) + def render_to_string(options = nil, &block) #:doc: + result = render(options, &block) erase_render_results @variables_added = nil @template.instance_variable_set("@assigns_added", nil) -- cgit v1.2.3