rails/rails — Issue #3953: config.action_controller.relative_url_root won't (should) work with assets
Author: sergiocampama
Created: 2011-12-12 19:30:00+00:00
State: open

I have a new 3.1.3 rails app, and I serve it from a subdirectory... (example.com/subdirectory)

The only configuration I found for the subdirectory prefix is the `config.action_controller.relative_url_root`, but that only works for the controllers (I assume from the `action_controller` bit)..

But the assets won't work after issued the previous command, having to use ALSO issue a `config.assets.prefix = '/subdirectory/assets'` config in application.rb

I think there should be a general option setting the real relative url root for everything in the app, not just controllers, as I find it hard to believe that I'm the only person who wants to serve rails apps from subdirectories instead of subdomains...