Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3472

Show
Ignore:
Timestamp:
01/23/06 16:29:37 (3 years ago)
Author:
sam
Message:

Fix render(:update) to not render layouts

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r3471 r3472  
    11*SVN* 
     2 
     3* Fix render(:update) to not render layouts. [Sam Stephenson] 
    24 
    35* Fixed that SSL would not correctly be detected when running lighttpd/fcgi behind lighttpd w/mod_proxy #3548 [stephen_purcell@yahoo.com] 
  • trunk/actionpack/lib/action_controller/layout.rb

    r3462 r3472  
    237237    private 
    238238      def apply_layout?(template_with_options, options) 
     239        return false if options == :update 
    239240        template_with_options ?  candidate_for_layout?(options) : !template_exempt_from_layout? 
    240241      end 
  • trunk/actionpack/test/controller/new_render_test.rb

    r3441 r3472  
    224224             "render_js_with_explicit_template", 
    225225             "render_js_with_explicit_action_template", 
    226              "delete_with_js" 
     226             "delete_with_js", "update_page" 
    227227     
    228228          "layouts/standard" 
     
    490490  def test_update_page 
    491491    get :update_page 
     492    assert_template nil 
    492493    assert_equal 'text/javascript', @response.headers['Content-type'] 
    493494    assert_equal 2, @response.body.split($/).length