aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-08-07 11:33:54 -0300
committerYehuda Katz <wycats@gmail.com>2009-08-07 11:33:54 -0300
commitbfe58ac05d4b7ba5d5c04c3aa9a719e340b2111e (patch)
treeb0551d64290678ecf8d0ab02a8b7b89607ccfa14 /actionpack/test/controller
parent606e950ccbd02a10f724c73543575a2a4e1ed8cb (diff)
downloadrails-bfe58ac05d4b7ba5d5c04c3aa9a719e340b2111e.tar.gz
rails-bfe58ac05d4b7ba5d5c04c3aa9a719e340b2111e.tar.bz2
rails-bfe58ac05d4b7ba5d5c04c3aa9a719e340b2111e.zip
Get all ActionController partial rendering to use ActionView's partial code. Consequences:
* It is not possible to always pre-determine the layout before going to ActionView. This was *already* broken for render :partial => @object, :layout => true. This is now handled by overriding render_to_body in layouts.rb and manually injecting the partial's response. This needs to be done in ActionController since ActionController knows enough to get _layout_for_option. There is probably a better abstraction here. * As a result, all partial rendering can correctly restrict their layouts to the mime type of the rendered partial. This could have previously caused a bug in some edge cases. * If other layout-like options are added, they might need to add special code for the case of render :partial. We should try to think of an alternate solution, if possible, but this works for the cases we know of now.
Diffstat (limited to 'actionpack/test/controller')
0 files changed, 0 insertions, 0 deletions