Skip to content

Fixes a tiny bug when calling expire_page in production environment #18

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mtylty
Copy link

@mtylty mtylty commented Mar 14, 2011

When RAILS_ENV=production, calling expire_page (i.e. when updating a static page), results in a 404 (by calling a non-existant route)...
This is due to the fact that the route passed to expire_page has a controller specified without a trailing slash.
This results in the actual controller being called is 'admin/static_content' while it is evident (just by looking at the folder structure), that the 'static_content' controller is meant to be outside the admin namespace...

Hope you'll pull it :)

Keep up the good work.

Matteo

@romul
Copy link
Contributor

romul commented Apr 4, 2011

Thank you. I applied your patch to spree fork - spree-contrib@a70594f

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

Successfully merging this pull request may close these issues.

2 participants