I'm putting together my next Scaling Rails envycast (which may get
released for free), and I'm running into what appears to be a bug with
Rails 2.2.2 when ActionCaching. I looked for a bug report which
addresses this, but I have been unable to find one, so I thought I'd
share on here. Here's the gist:
class PostsController < ApplicationController
caches_action :show
end
I tried to track down the offending code, but ran out of time. Is
someone aware of this issue?
I don't really use action caching so I haven't noticed this, but it
does sound nasty. Can you give us a lighthouse ticket with a failing
test, prehaps git bisect can find it.
The Changes to caching in edge are pretty minimal, so I'm guessing
it's related to routing not caching. Where does url_for
:controller=>'posts', :action=>'show', :id=>1 go?
I don't really use action caching so I haven't noticed this, but it
does sound nasty. Can you give us a lighthouse ticket with a failing
test, prehaps git bisect can find it.
The Changes to caching in edge are pretty minimal, so I'm guessing
it's related to routing not caching. Where does url_for
:controller=>'posts', :action=>'show', :id=>1 go?
What does your route declaration look like?
I've been looking into this and found that removing the default routes
(map.connect ':controller/:action/:id') will fix the problem.
Unfortunately I'm not sure why just yet.