From 8ab37c76608d7105c47566e79b85fcf72cb11e4b Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Thu, 19 Mar 2009 13:35:39 -0700 Subject: Started implementing render :action --- actionpack/lib/action_controller/abstract/renderer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller/abstract') diff --git a/actionpack/lib/action_controller/abstract/renderer.rb b/actionpack/lib/action_controller/abstract/renderer.rb index 537335aa0e..19a64b0c38 100644 --- a/actionpack/lib/action_controller/abstract/renderer.rb +++ b/actionpack/lib/action_controller/abstract/renderer.rb @@ -25,8 +25,8 @@ module AbstractController self.response_body = render_to_string(template) end - def render_to_string(template = action_name) - tmp = view_paths.find_by_parts(template.to_s, formats, _prefix) + def render_to_string(template = action_name, prefix = true) + tmp = view_paths.find_by_parts(template.to_s, formats, (_prefix if prefix)) _render_template(tmp) end -- cgit v1.2.3