Fragment caching strangely honors the options I pass to it


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?

And that’s the file generated:

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs