I am caching and expiring pages/actions/fragments in my code and I've come across a really frustrating problem
In my routes I have prefixed all controllers with the :locale. This works well for the most part. When I cache a page/fragment it is cached to /en/whatever etc... as expected However when I try to expire the page/fragment the locale is not prefixed to the url but added as an option ?locale=en (ie the routes.rb directive is ignored) I inserted a url_for statement into my controller to debug this issue and I see the same behaviour. As a result the cached code is not being expired. I have no idea what I am doing wrong Here is a pastie with all the code http://pastie.org/515309 Anyone have any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

