This project is archived and is in readonly mode.
caches_action with :layout option
Reported by José Valim | May 14th, 2008 @ 07:32 PM | in 2.x
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.
Comments and changes to this ticket
-
josh May 14th, 2008 @ 08:49 PM
- 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.
-
Repository June 3rd, 2008 @ 08:04 PM
- State changed from open to resolved
(from [d54d90f2b590c763fe710482a9b993923fe03ec0]) Allow caches_action to accept a layout option [#198 state:resolved]
Signed-off-by: Joshua Peek
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>