I want to redirect 开发者_开发百科my Rails 2 application ask for javascripts that resides on another server eg http://asset.example.com/javascripts
how can I do that?
Thanks,
In config/environments/production.rb:
config.action_controller.asset_host = "http://asset.example.com"
Include the following line in environment.rb or specifically production.rb
ActionController::Base.asset_host = "assets.example.com"
精彩评论