aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/configuring.textile
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-11-29 17:55:12 +1100
committerRyan Bigg <radarlistener@gmail.com>2010-11-29 17:55:29 +1100
commitc4cbf733a1a3fe0ab46cc707d6793e3b2de56f60 (patch)
treed2d0c24d38ee0d46a3f89a264ed48ca17192fbfa /railties/guides/source/configuring.textile
parent9e655e8571345701b23a8cdd4d480ecf3a1623d3 (diff)
downloadrails-c4cbf733a1a3fe0ab46cc707d6793e3b2de56f60.tar.gz
rails-c4cbf733a1a3fe0ab46cc707d6793e3b2de56f60.tar.bz2
rails-c4cbf733a1a3fe0ab46cc707d6793e3b2de56f60.zip
re-add config.action_controller.asset_host and asset_path to config guide
Diffstat (limited to 'railties/guides/source/configuring.textile')
-rw-r--r--railties/guides/source/configuring.textile8
1 files changed, 6 insertions, 2 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index 3a49d42aaf..47b6742f8b 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -49,9 +49,9 @@ 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_host+ sets the host for the assets. Useful when CDNs are used for hosting assets rather than the application server itself. Shorter version of +config.action_controller.asset_host+.
-* +config.asset_path+ takes a block which configures where assets can be found.
+* +config.asset_path+ takes a block which configures where assets can be found. Shorter version of +config.action_controller.asset_path+.
<ruby>
config.asset_path = proc { |asset_path| "assets/#{asset_path}" }
@@ -222,6 +222,10 @@ h4. Configuring Action Controller
<tt>config.action_controller</tt> includes a number of configuration settings:
+* +config.action_controller.asset_host+ sets the host for the assets. Useful when CDNs are used for hosting assets rather than the application server itself.
+
+* +config.action_controller.asset_path+ takes a block which configures where assets can be found. Shorter version of +config.action_controller.asset_path+.
+
* +config.action_controller.default_charset+ specifies the default character set for all renders. The default is "utf-8".
* +config.action_controller.logger+ accepts a logger conforming to the interface of Log4r or the default Ruby 1.8+ Logger class, which is then used to log information from Action Controller. Set to nil to disable logging.