Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erronously returning cached version on NoMethodError #459

Open
fxtentacle opened this issue Mar 31, 2020 · 0 comments
Open

Erronously returning cached version on NoMethodError #459

fxtentacle opened this issue Mar 31, 2020 · 0 comments

Comments

@fxtentacle
Copy link

I was just bitten by a rather annoying bug in sprocket-rails 3.2.1, the result of which was that in development mode I was seeing wrong URLs.

I tracked this down to the fact that I was being served an outdated version of the page, which had apparently been cached.

Running rake tmp:cache:clear then made the true error visible, which was

NoMethodError: undefined method `image_path' for #<Object:0x000000000c3e1398>

I believe that this is a bug in the sprocket-rails caching, that if a resource cannot be generate due to a missing context helper function, it won't return or log the error, but instead it will silently sent the (outdated) version from cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant