How to make ActionController::Base.asset_host and Base.relative_url_root independent?
- by GSP
In our Intranet environment we have a decree that common assets (stylesheets, images, etc) should be fed from Apache root while Rails apps runs from from a "sub directory" (a proxy to a Mongrel cluster). In other words:
<%= stylesheet_tag '/common' %>
# <link href="http://1.1.1.1/stylesheets/common.css" />
<%= link_to 'Home',…