You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/source/configuring.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ These configuration methods are to be called on a `Rails::Railtie` object, such
58
58
59
59
*`config.asset_host` sets the host for the assets. UsefulwhenCDNs are used for hosting assets, orwhen you want to work around the concurrency constraints builtin in browsers using different domain aliases. Shorter version of `config.action_controller.asset_host`.
60
60
61
-
*`config.autoload_once_paths` accepts an array of paths from which Rails will autoload constants that won't be wiped per request. Relevant if `config.cache_classes` is `false`, which is the case in development mode by default. Otherwise, all autoloading happens only once. All elements of this array must also be in `autoload_paths`. Default is an empty array.
61
+
*`config.autoload_once_paths` accepts an array of paths from which Rails will autoload constants that won't be wiped per request. Relevant if `config.cache_classes` is false, which is the case in development mode by default. Otherwise, all autoloading happens only once. All elements of this array must also be in `autoload_paths`. Default is an empty array.
62
62
63
63
* `config.autoload_paths` accepts an array of paths from which Rails will autoload constants. Default is all directories under `app`.
64
64
@@ -70,7 +70,7 @@ These configuration methods are to be called on a `Rails::Railtie` object, such
70
70
71
71
* `config.colorize_logging` specifies whether or not to use ANSI color codes when logging information. Defaults to true.
72
72
73
-
* `config.consider_all_requests_local` is a flag. If true then any error will cause detailed debugging information to be dumped in the HTTP response, and the `Rails::Info` controller will show the application runtime context in `/rails/info/properties`. `true` by default in development and test environments, and `false` in production mode. For finer-grained control, set this to `false` and implement `local_request?` in controllers to specify which requests should provide debugging information on errors.
73
+
* `config.consider_all_requests_local` is a flag. If true then any error will cause detailed debugging information to be dumped in the HTTP response, and the `Rails::Info` controller will show the application runtime context in `/rails/info/properties`. True by default in development and test environments, and false in production mode. For finer-grained control, set this to false and implement `local_request?` in controllers to specify which requests should provide debugging information on errors.
74
74
75
75
* `config.console` allows you to set class that will be used as console you run `rails console`. It's best to run it in`console`block:
76
76
@@ -83,7 +83,7 @@ These configuration methods are to be called on a `Rails::Railtie` object, such
83
83
end
84
84
```
85
85
86
-
*`config.dependency_loading` is a flag that allows you to disable constant autoloading setting it to `false`. It only has effect if`config.cache_classes` is true, which it is by default in production mode. This flag is set to `false` by `config.threadsafe!`.
86
+
*`config.dependency_loading` is a flag that allows you to disable constant autoloading setting it to false. It only has effect if`config.cache_classes` is true, which it is by default in production mode. This flag is set to false by `config.threadsafe!`.
87
87
88
88
*`config.eager_load`whentrue, eager loads all registered `config.eager_load_namespaces`. This includes your application, engines, Rails frameworks and any other registered namespace.
89
89
@@ -155,7 +155,7 @@ These configuration methods are to be called on a `Rails::Railtie` object, such
155
155
156
156
*`config.assets.compile` is a boolean that can be used to turn on live Sprockets compilation in production.
157
157
158
-
*`config.assets.logger` accepts a logger conforming to the interface of Log4ror the default Ruby`Logger`class. Defaults to the same configured at `config.logger`. Setting`config.assets.logger` to `false` will turn off served assets logging.
158
+
*`config.assets.logger` accepts a logger conforming to the interface of Log4ror the default Ruby`Logger`class. Defaults to the same configured at `config.logger`. Setting`config.assets.logger` to false will turn off served assets logging.
159
159
160
160
### Configuring Generators
161
161
@@ -284,7 +284,7 @@ The schema dumper adds one additional configuration option:
284
284
285
285
*`config.action_controller.asset_host` sets the host for the assets. UsefulwhenCDNs are used for hosting assets rather than the application server itself.
286
286
287
-
*`config.action_controller.perform_caching` configures whether the application should perform caching ornot. Set to `false`in development mode, `true`in production.
287
+
*`config.action_controller.perform_caching` configures whether the application should perform caching ornot. Set to falsein development mode, truein production.
288
288
289
289
*`config.action_controller.default_static_extension` configures the extension used for cached pages. Defaults to `.html`.
290
290
@@ -342,7 +342,7 @@ The schema dumper adds one additional configuration option:
342
342
343
343
* `config.action_view.erb_trim_mode` gives the trim mode to be used by ERB. It defaults to `'-'`. See the [ERB documentation](http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/) for more information.
344
344
345
-
* `config.action_view.embed_authenticity_token_in_remote_forms` allows you to set the default behavior for `authenticity_token` in forms with `:remote => true`. By default it's set to `false`, which means that remote forms will notinclude`authenticity_token`, which is helpful when you're fragment-caching the form. Remote forms get the authenticity from the `meta` tag, so embedding is unnecessary unless you support browsers without JavaScript. In such case you can either pass `:authenticity_token => true` as a form option or set this config setting to `true`
345
+
* `config.action_view.embed_authenticity_token_in_remote_forms` allows you to set the default behavior for `authenticity_token` in forms with `:remote => true`. By default it's set to false, which means that remote forms will notinclude`authenticity_token`, which is helpful when you're fragment-caching the form. Remote forms get the authenticity from the `meta` tag, so embedding is unnecessary unless you support browsers without JavaScript. In such case you can either pass `:authenticity_token => true` as a form option or set this config setting to `true`
346
346
347
347
* `config.action_view.prefix_partial_path_with_controller_namespace` determines whether or not partials are looked up from a subdirectory in templates rendered from namespaced controllers. For example, consider a controller named `Admin::PostsController` which renders this template:
348
348
@@ -374,7 +374,7 @@ There are a number of settings available on `config.action_mailer`:
374
374
375
375
*`config.action_mailer.delivery_method` defines the delivery method. The allowed values are `:smtp` (default), `:sendmail`, and`:test`.
376
376
377
-
*`config.action_mailer.perform_deliveries` specifies whether mail will actually be delivered and is true by default. It can be convenient to set it to `false`for testing.
377
+
*`config.action_mailer.perform_deliveries` specifies whether mail will actually be delivered and is true by default. It can be convenient to set it to falsefor testing.
378
378
379
379
*`config.action_mailer.default_options` configures ActionMailer defaults. Use to set options like `from`or`reply_to`for every mailer. These default to:
0 commit comments