Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

ASSET_PREFIX is only prefixed for the first pageview. #2

Open
r3ap3r2004 opened this issue Aug 14, 2010 · 1 comment
Open

ASSET_PREFIX is only prefixed for the first pageview. #2

r3ap3r2004 opened this issue Aug 14, 2010 · 1 comment

Comments

@r3ap3r2004
Copy link

When I start the host application and visit a route in my engine the stylesheet and javascript links that get created inside the engine all have the appropriate ASSET_PREFIX appended to them like they should and everything works great.

But, when I reload the page (without restarting the server) any subsequent page view is missing the ASSET_PREFIX which of course causes all the necessary javascript and stylesheets to look in /javascripts, etc instead of /my_engine/javascripts like it should.

I am running rails 3.0.0-rc.

@r3ap3r2004
Copy link
Author

I have found that if I set:

config.cache_classes = true

for the environment that it works as expected. Which under production is great, but it isn't ideal for development mode.

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

No branches or pull requests

1 participant