Forum: Ruby on Rails Fragment caching strangely honors the options I pass to it

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fernando P. (Guest)
on 2008-11-13 19:30

In my view I have the following cache:

<%- cache(:controller => 'products', :action => 'index', :action_suffix
=> 'footer') do -%>
<%- end -%>

And that's the file generated:

Why isn't fragment caching picking up the :index option, and incorrectly
making use of action_suffix?

According to the API
I should be getting the following filee:

Any idea?
Fernando P. (Guest)
on 2008-11-13 19:45
> And that's the file generated:
> tmp/cache/views/

Hmm, according to railsenvy's tutorial on the topic, it seems correct:

Maybe it is not making use of the :action option because I have
developed my app restfully, so /products implicitly triggers the index
This topic is locked and can not be replied to.