Could you just do something like this: <% cache(:action => "list", :controller => "blah", :style => "new") do %> # code that renders in either mode conditionally <% end %>
You could also look at using something like cells, which has caching built in and might be flexible enough to cache and render 2 different views under the same action (depending on the circumstances). Luke On 2011-02-18, at 7:42 AM, rails.n...@gmail.com wrote: > I guess this could also be done by implementing some sort of Fragment > Cache... wrapping a whole page > > Just not sure where to begin... I don't want to reinvent rails > caching... just want to tweak it with a simple conditional + have > control on the file cache storage > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.