From ab211bf592f52fbde7853961030046ea1d387851 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Thu, 4 Dec 2008 16:35:13 -0600 Subject: Fix rendering html partials from an rjs template Signed-off-by: Joshua Peek --- actionpack/lib/action_view/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index da1f283deb..a731fa3e1d 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -275,7 +275,7 @@ module ActionView #:nodoc: if defined? @template_format @template_format elsif controller && controller.respond_to?(:request) - @template_format = controller.request.template_format + @template_format = controller.request.template_format.to_sym else @template_format = :html end -- cgit v1.2.3