From 18049864cbe4bbdfd7eb0e96238877bfe74d79fd Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 28 Mar 2008 21:23:28 +0000 Subject: Inspect options hashes in RenderError message so it's actually readable. Closes #11435 [court3nay] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9123 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 4b6411df30..d7e4116581 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -836,12 +836,12 @@ module ActionController #:nodoc: if options.nil? return render_for_file(default_template_name, nil, true) elsif !extra_options.is_a?(Hash) - raise RenderError, "You called render with invalid options : #{options}, #{extra_options}" + raise RenderError, "You called render with invalid options : #{options.inspect}, #{extra_options.inspect}" else if options == :update options = extra_options.merge({ :update => true }) elsif !options.is_a?(Hash) - raise RenderError, "You called render with invalid options : #{options}" + raise RenderError, "You called render with invalid options : #{options.inspect}" end end -- cgit v1.2.3