aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRahul P. Chaudhari <rahul100885@gmail.com>2012-02-29 08:20:59 +0530
committerRahul P. Chaudhari <rahul100885@gmail.com>2012-02-29 08:20:59 +0530
commitcfc939bcef93243373c6424db0b8be1ab0300ec7 (patch)
treef3dac3741f552b48b5643df322470ba5048a5f71 /railties
parent72fa9d63f24b046ad75438b976aea378d6c410c5 (diff)
downloadrails-cfc939bcef93243373c6424db0b8be1ab0300ec7.tar.gz
rails-cfc939bcef93243373c6424db0b8be1ab0300ec7.tar.bz2
rails-cfc939bcef93243373c6424db0b8be1ab0300ec7.zip
Changed asset_host config to more specific
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/action_view_overview.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/action_view_overview.textile b/railties/guides/source/action_view_overview.textile
index 2c0b81121f..f007629207 100644
--- a/railties/guides/source/action_view_overview.textile
+++ b/railties/guides/source/action_view_overview.textile
@@ -535,10 +535,10 @@ h4. AssetTagHelper
This module provides methods for generating HTML that links views to assets such as images, JavaScript files, stylesheets, and feeds.
-By default, Rails links to these assets on the current host in the public folder, but you can direct Rails to link to assets from a dedicated assets server by setting +ActionController::Base.asset_host+ in the application configuration, typically in +config/environments/production.rb+. For example, let's say your asset host is +assets.example.com+:
+By default, Rails links to these assets on the current host in the public folder, but you can direct Rails to link to assets from a dedicated assets server by setting +config.action_controller.asset_host+ in the application configuration, typically in +config/environments/production.rb+. For example, let's say your asset host is +assets.example.com+:
<ruby>
-ActionController::Base.asset_host = "assets.example.com"
+config.action_controller.asset_host = "assets.example.com"
image_tag("rails.png") # => <img src="http://assets.example.com/images/rails.png" alt="Rails" />
</ruby>