Changeset 1970
- Timestamp:
- 08/05/05 20:51:03 (3 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/layout.rb (modified) (1 diff)
- trunk/actionpack/test/controller/new_render_test.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r1963 r1970 1 1 *SVN* 2 3 * Make sure :layout => false is always used when rendering inside a layout 2 4 3 5 * Use raise instead of assert_not_nil in Test::Unit::TestCase#process to ensure that the test variables (controller, request, response) have been set trunk/actionpack/lib/action_controller/layout.rb
r1915 r1970 209 209 210 210 if apply_layout?(template_with_options, options) && (layout = pick_layout(template_with_options, options, deprecated_layout)) 211 options = options.merge :layout => false if template_with_options 211 212 logger.info("Rendering #{options} within #{layout}") if logger 212 213 trunk/actionpack/test/controller/new_render_test.rb
r1961 r1970 59 59 def rendering_without_layout 60 60 render :action => "hello_world", :layout => false 61 end 62 63 def layout_overriding_layout 64 render :action => "hello_world", :layout => "standard" 61 65 end 62 66 … … 155 159 when "builder_layout_test" 156 160 "layouts/builder" 157 when "action_talk_to_layout" 161 when "action_talk_to_layout", "layout_overriding_layout" 158 162 "layouts/talk_from_action" 159 163 end … … 262 266 end 263 267 268 def test_layout_overriding_layout 269 get :layout_overriding_layout 270 assert_no_match %r{<title>}, @response.body 271 end 272 264 273 def test_rendering_nothing_on_layout 265 274 get :rendering_nothing_on_layout