Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

caches_action with :layout option

#198

Added :layout to caches_action method.

If you specify :layout => false, the layout will not be cached, only the action content. This is useful if you have dynamic content in your layout (which is true for most applications).

This is useful to avoid fragment caching in the whole action and is faster also.

If the :layout is not set or set to true, we have the default behavior.

Tests added.

Reported by José Valim · May 14th, 2008 @ 07:32 PM

State: resolved
Milestone: 2.x
Assigned to: josh josh
Importance: none

Activity

  1. josh
    josh
    • Milestone set to 2.x
    • State changed from new to open
    • Assigned user set to josh

    Briefly checked it out, looks good. However, its going be post-2.1, sorry.

    In the meantime, check out http://rails.lighthouseapp.com/p..., and try to reformat your patch. Then I can commit the patch as you being the author.

    May 14th, 2008 @ 08:49 PM

  2. José Valim
  3. Repository
    Repository
    • State changed from open to resolved

    (from [d54d90f2b590c763fe710482a9b993923fe03ec0]) Allow caches_action to accept a layout option [#198 state:resolved]

    Signed-off-by: Joshua Peek

    http://github.com/rails/rails/co...

    June 3rd, 2008 @ 08:04 PM