v. Rails 2.3.8
What I’m looking to achieve is to dynamically modify outbound links in Rails so that the changes are cached using fragment caching. How would you go about doing this?
Note: This time I am intentionally not including my own ideas and source code here, as I’d like to hear suggestions without bias.
Thanks.
Here is the solution:
In ActionController::Caching::Fragments.fragment_for, change these lines:
to this:
Please note that:
database during initialization).