aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-11-29 12:24:41 +1100
committerRyan Bigg <radarlistener@gmail.com>2010-11-29 12:24:41 +1100
commit549c13466072d5c33fe808d25adfa06bd5feb6c8 (patch)
tree07e46729d376c189566f6c6c6e594a629e7eb149
parente15b8fa0901a5efb6ca1223d7331233b6e3af1f6 (diff)
downloadrails-549c13466072d5c33fe808d25adfa06bd5feb6c8.tar.gz
rails-549c13466072d5c33fe808d25adfa06bd5feb6c8.tar.bz2
rails-549c13466072d5c33fe808d25adfa06bd5feb6c8.zip
Add asset_host and asset_path to the configuring guide
-rw-r--r--railties/guides/source/configuring.textile8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index a610f49282..5ae4a53973 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -49,6 +49,14 @@ h4. Rails General Configuration
* +config.allow_concurrency+ should be set to +true+ to allow concurrent (threadsafe) action processing. Set to +false+ by default. You probably don't want to call this one directly, though, because a series of other adjustments need to be made for threadsafe mode to work properly. Can also be enabled with +threadsafe!+.
+* +config.asset_host+ sets the host for the assets. Useful when CDNs are used for hosting assets rather than the application server itself.
+
+* +config.asset_path+ takes a block which configures where assets can be found.
+
+<ruby>
+ config.asset_path = proc { |asset_path| "assets/#{asset_path}" }
+</ruby>
+
* +config.autoload_once_paths+ accepts an array of paths from which Rails will automatically load from only once. All elements of this array must also be in +autoload_paths+.
* +config.autoload_paths+ accepts an array of additional paths to prepend to the load path. By default, all app, lib, vendor and mock paths are included in this list.