diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 7751d740690285c424a6cab3b1d1948a86253437..433fd9f8018e955cfc67670fd0a903023a26327f 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -757,9 +757,9 @@ def render_to_string(options = nil, &block) #:doc: def render_action(action_name, status = nil, with_layout = true) #:nodoc: template = default_template_name(action_name.to_s) if with_layout && !template_exempt_from_layout?(template) - render_with_layout(template, status) + render_with_layout(:file => template, :status => status, :use_full_path => true, :layout => true) else - render_without_layout(template, status) + render_without_layout(:file => template, :status => status, :use_full_path => true) end end diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index 67b6c64fa4ce935a2ebe0fc04fe7e7ebf2d53526..acdd8d9984491244ea69284c56b555d23ee1ee97 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -121,38 +121,38 @@ def setup end def test_simple_show - assert_not_deprecated { get :hello_world } + get :hello_world assert_response 200 assert_template "test/hello_world" end def test_do_with_render - assert_deprecated_render { get :render_hello_world } + get :render_hello_world assert_template "test/hello_world" end def test_do_with_render_from_variable - assert_not_deprecated { get :render_hello_world_from_variable } + get :render_hello_world_from_variable assert_equal "hello david", @response.body end def test_do_with_render_action - assert_deprecated_render { get :render_action_hello_world } + get :render_action_hello_world assert_template "test/hello_world" end def test_do_with_render_action_with_symbol - assert_deprecated_render { get :render_action_hello_world_with_symbol } + get :render_action_hello_world_with_symbol assert_template "test/hello_world" end def test_do_with_render_text - assert_not_deprecated { get :render_text_hello_world } + get :render_text_hello_world assert_equal "hello world", @response.body end def test_do_with_render_custom_code - assert_not_deprecated { get :render_custom_code } + get :render_custom_code assert_response 404 end @@ -184,22 +184,22 @@ def test_access_to_request_in_view end def test_render_xml - assert_deprecated_render { get :render_xml_hello } + get :render_xml_hello assert_equal "\n
Hello David
\nThis is grand!
\n\n", @response.body end def test_render_xml_with_default - assert_not_deprecated { get :greeting } + get :greeting assert_equal "This is grand!
\n", @response.body end def test_layout_rendering - assert_deprecated_render { get :layout_test } + get :layout_test assert_equal "Hello world!", @response.body end def test_render_xml_with_layouts - assert_deprecated_render { get :builder_layout_test } + get :builder_layout_test assert_equal "Hello
\nThis is grand!
\n\n