Call to expire_fragment raises “ to use #url_for, you must include routing helpers explicitly” error
问题 I've been upgrading a Rails 2 app to Rails 3.2.13 and am having a problems when I try to enable caching. Caching worked in Rails 2 and I'm using the same version of Ruby - 1.8.7. I'm not sure if it is relevant but I'm developing on OSX. The error's being thrown from the ActionController::Caching::Fragments class when expire_fragment is called. expire_fragment makes a call to fragment_cache_key which contains this: ActiveSupport::Cache.expand_cache_key(key.is_a?(Hash) ? url_for(key).split("://