1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/abstract_controller
Yehuda Katz bfe58ac05d 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.
2009-08-07 11:33:54 -03:00
..
base.rb Move AbstractController to a top-level component 2009-08-06 22:51:24 -03:00
benchmarker.rb Move AbstractController to a top-level component 2009-08-06 22:51:24 -03:00
callbacks.rb Move AbstractController to a top-level component 2009-08-06 22:51:24 -03:00
exceptions.rb Move AbstractController to a top-level component 2009-08-06 22:51:24 -03:00
helpers.rb Move AbstractController to a top-level component 2009-08-06 22:51:24 -03:00
layouts.rb Get all ActionController partial rendering to use ActionView's partial code. Consequences: 2009-08-07 11:33:54 -03:00
logger.rb Move AbstractController to a top-level component 2009-08-06 22:51:24 -03:00
renderer.rb Get all ActionController partial rendering to use ActionView's partial code. Consequences: 2009-08-07 11:33:54 -03:00