search for: fragment_exists

Displaying 1 result from an estimated 1 matches for "fragment_exists".

2009 Mar 17
1
Caching in Rails
I have a page that requires a lot of DB access to create a section of it, but that section does not change very often. I know how to cache the fragment in the view, but the db is still accessed in the controller. I watched the railscasts on fragment caching and he does it by moving the logic to the model. Is that the only way to do it? The part of the page that changes on every display is the