aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
Commit message (Collapse)AuthorAgeFilesLines
* add `scaffold_stylesheet` method to guide [ci skip]yuuji.yaginuma2016-03-041-0/+1
| | | | `scaffold_stylesheet` was added in #20479.
* Merge pull request #23417 from sgringwe/masterRafael Mendonça França2016-03-011-0/+2
|\ | | | | | | Add option to error on ignored order or limit
| * Add initial support for allowing an error on order or limit of queries being ↵Scott Ringwelski2016-02-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ignored in batches add some documentation and add 4 tests regarding error vs. warning behavior fix a typo when referring to the message go back to default in tests so that ordering is not important. use a constant instead of method. fix assert_nothing_raised call. use self.klass to allow per class configuration remove logger warn assets as that is tested elsewhere. pass error_on_ignore through find_each and find_in_batches also. add blocks to the finds so that the code is actually executed put the setting back to default in an ensure Add a changelog entry
* | Add small Action Cable documentation fixesHayley Anderson2016-02-271-2/+2
| | | | | | | | | | * Fix typos/grammar errors * Make capitalization/naming consistent
* | The tasks in the rails task namespace is deprecated in favor of app namespace.Ryo Hashimoto2016-02-261-1/+1
| | | | | | | | (e.g. `rails:update` and `rails:template` tasks is renamed to `app:update` and `app:template`.)
* | Add config.debug_exception_response_format into configuration guideStan Lo2016-02-251-0/+2
| |
* | Update config.force_ssl's documentationStan Lo2016-02-251-1/+1
| |
* | Enable Action Cable routes by defaultJon Moss2016-02-241-0/+11
| | | | | | | | This also marks Action Cable routes as internal to Rails.
* | Add ActionMailer configuration optionsStan Lo2016-02-251-0/+3
| |
* | Update documentation regarding initializers [ci skip]Dave Gynn2016-02-091-4/+16
|/ | | | | | | - Remove ActionController `logger` and `initialize_framework_caches` which were merged into `set_configs` in fbc9d0f4 - Rename ActiveRecord `set_reloader_hooks` changed in 283a0876 - Add missing initializers for ActionController and ActiveRecord
* Merge pull request #23375 from prathamesh-sonpatki/fix-19835Rafael França2016-02-011-2/+0
|\ | | | | Fix documentation related to `config.assets.cache_store` [ci skip]
| * Fix documentation related to `config.assets.cache_store` [ci skip]Prathamesh Sonpatki2016-02-011-2/+0
| | | | | | | | | | | | | | - sprockets-rails no longer supports customizing cache store after rails/sprockets-rails@ecaeb27 using `config.assets.cache_store`. - Instead we need to configure it using block syntax. - Fixes #19835.
* | Merge pull request #22857 from bdewater/interlock-docVipul A M2016-02-011-1/+1
|\ \ | |/ |/| Update middleware docs regarding ActionDispatch::LoadInterlock [ci skip]
| * Update middleware docs regarding ActionDispatch::LoadInterlock [ci skip]Bart de Water2016-01-311-1/+1
| |
* | Merge branch 'master' of github.com:rails/docrailsVijay Dev2016-01-221-1/+1
|\ \
| * | [ci skip] An internal link is an relative pathyui-knk2015-12-231-1/+1
| | |
* | | Merge pull request #21995 from tak1n/masterJon Moss2016-01-101-8/+35
|\ \ \ | | | | | | | | Add Example for using config_for
| * | | fix doc for rails custom configuration through config_for [skip ci]Benny Klotz2015-12-031-2/+2
| | | |
| * | | Updated existing custom configuration for rails 5 where `config.x`Benny Klotz2015-10-191-8/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | namespace is not needed anymore. Added custom configuration through config_for which parses a yml file in config folder.
* | | | add option for per-form CSRF tokensBen Toews2016-01-041-0/+2
| |_|/ |/| |
* | | Fix documentation for configuring default_charset [ci skip]Prathamesh Sonpatki2015-12-301-2/+2
| | | | | | | | | | | | - Fixes #22836.
* | | Improve RDoc documentation of ActionDispatch::SSLTim Rogers2015-12-241-1/+1
| | |
* | | Improve documentation of config.force_ssl in guidesTim Rogers2015-12-241-2/+2
| | |
* | | Merge pull request #22709 from ↵Rafael França2015-12-211-1/+1
|\ \ \ | | | | | | | | | | | | | | | | jonatack/clarify-explanation-for-new-config-halt-callback-chains Clarify config settings for AS::halt_callback_chains_on_return_false
| * | | Clarify config settings for AS::halt_callback_chains_on_return_falseJon Atack2015-12-211-1/+1
| | | | | | | | | | | | | | | | [skip ci]
* | | | Remove legacy mysql adapterRyuta Kamizono2015-12-211-1/+1
|/ / / | | | | | | | | | Follow up to #22642.
* | / mysql2 adapter instead of mysql [ci skip]Rajarshi Das2015-12-201-1/+1
| |/ |/|
* | debug_missing_translation configuration added to action_viewSameer Rahmani2015-12-181-0/+2
| | | | | | | | | | | | | | | | | | `I18n.translate` helper will wrap the missing translation keys in a <span> tag only if `debug_missing_translation` configuration has a truthy value. Default value is `true`. For example in `application.rb`: # in order to turn off missing key wrapping config.action_view.debug_missing_translation = false
* | let config.file_watcher be the way to enable the evented file watcherXavier Noria2015-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | Before this commit, the sole presence of the Listen constant enabled the evented file watcher (unless listen resorted to the polling backend). This way, applications may depend on listen for other stuff independently of this feature. Also, allows teams with mixed setups to decide at boot time whether the evented watcher should be enabled for each particular instance.
* | Merge pull request #22315 from takatoshiono/fix-configuring-docArthur Nogueira Neves2015-11-281-2/+2
|\ \ | | | | | | Fix set_autoload_paths and set_load_path document [ci skip]
| * | Fix set_autoload_paths and set_load_path documentTakatoshi Ono2015-11-171-2/+2
| | |
* | | Merge pull request #22263 from mastahyeti/csrf-origin-checkRafael França2015-11-261-0/+2
|\ \ \ | | | | | | | | | | | | | | | | Add option to verify Origin header in CSRF checks [Jeremy Daer + Rafael Mendonça França]
| * | | Add option to verify Origin header in CSRF checksBen Toews2015-11-251-0/+2
| | | |
* | | | Change configuration-guide examplerbr2015-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use an example from a default Rails app (4.2.5) rather than an outdated one in the Configuring Rails Components section. I picked config.time_zone as it currently is the only 'setting for Rails' left in a default config/application.rb. I stumbled upon this with investigating autoloading in a legacy app, which still included the example comment "# config.autoload_paths += %W(#{config.root}/extras)". Usually adding app/* directories to autoload_paths isn't necessary, so also finding this example within the current docs was a bit confusing initially. [ci skip]
* | | | Revert "Fixed a few grammar issues."Rafael Mendonça França2015-11-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 16ce41b7f4449d6df15df30d69aef18da6510f36. Reason: See https://github.com/rails/rails/commit/16ce41b7f4449d6df15df30d69aef18da6510f36#commitcomment-14475125
* | | | Fixed a few grammar issues.David Chen2015-11-181-1/+1
| |/ / |/| |
* | | Make the `static_index` config part of the `config.public_server` configYuki Nishijima2015-11-161-1/+1
| | | | | | | | | | | | Also call it `public_server.index_name` so it'll make more sense.
* | | upgrade listen to 3.0.4Xavier Noria2015-11-081-1/+1
| | | | | | | | | | | | 3.0.3 has a bug in OS X.
* | | document the evented file system monitor opt-in in the config guide [ci skip]Xavier Noria2015-11-081-0/+22
|/ /
* | Replace `serve_static_files` mentions in docs.Kasper Timm Hansen2015-11-041-2/+2
| | | | | | | | | | | | | | | | Should use `public_file_server.enabled` instead. Clarified that static files will be served from the public directory, where it made sense. Also removed occurrence of the deprecated `static_cache_control`.
* | Merge pull request #19686 from tsun1215/index_errorsSean Griffin2015-10-261-0/+4
|\ \ | | | | | | | | | | | | | | | Errors can be indexed with nested attributes Close #8638
| * | Errors can be indexed with nested attributesMichael Probber2015-04-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `has_many` can now take `index_errors: true` as an option. When this is enabled, errors for nested models will be returned alongside an index, as opposed to just the nested model name. This option can also be enabled (or disabled) globally through `ActiveRecord::Base.index_nested_attribute_errors` E.X. ```ruby class Guitar < ActiveRecord::Base has_many :tuning_pegs accepts_nested_attributes_for :tuning_pegs end class TuningPeg < ActiveRecord::Base belongs_to :guitar validates_numericality_of :pitch end ``` - Old style - `guitar.errors["tuning_pegs.pitch"] = ["is not a number"]` - New style (if defined globally, or set in has_many_relationship) - `guitar.errors["tuning_pegs[1].pitch"] = ["is not a number"]` [Michael Probber, Terence Sun]
* | | Update #20768 to address feedbackSean Griffin2015-10-201-3/+3
| | |
* | | [Rails Guides] Clarify `belongs_to_required_by_default` optionVladimir Rybas2015-10-201-1/+3
| |/ |/| | | | | | | | | | | | | | | | | | | | | Original: * `config.active_record.belongs_to_required_by_default` is a boolean value and controls whether `belongs_to` association is required by default. Modified version: * `config.active_record.belongs_to_required_by_default` is a boolean value and controls whether validation error is triggered by default if `belongs_to` association is not present or not valid.
* | Fixed deprecated string to specify the middleware [ci skip]amitkumarsuroliya2015-10-031-1/+1
| |
* | Refactor AS::Callbacks halt config and fix the documentationRoque Pinel2015-10-011-1/+1
| | | | | | | | | | | | | | | | | | Move from `AS::Callbacks::CallbackChain.halt_and_display_warning_on_return_false` to `AS::Callbacks.halt_and_display_warning_on_return_false` base on [this discussion](https://github.com/rails/rails/pull/21218#discussion_r39354580) Fix the documentation broken by 0a120a818d413c64ff9867125f0b03788fc306f8
* | Make fuzzy sentence more clearDavid Verhasselt2015-09-281-1/+1
| | | | | | | | [ci skip]
* | mostly remove the ParamsParser middlewareAaron Patterson2015-09-181-1/+0
| | | | | | | | | | This can still be added to the middleware stack, but is really not necessary. I'll follow up with a commit that deprecates the constant
* | Merge pull request #21512 from X0nic/guides-clarify-timeout-errorYves Senn2015-09-081-1/+1
|\ \ | | | | | | [Rails Guides] clarify `ActiveRecord::ConnectionTimeoutError`
| * | [Rails Guides] clarify `ActiveRecord::ConnectionTimeoutError`Nathan Lee2015-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original: * ActiveRecord::ConnectionTimeoutError - could not obtain a database connection within 5 seconds. The max pool size is currently 5; consider increasing it: Modified version: * ActiveRecord::ConnectionTimeoutError - could not obtain a database connection within 5.000 seconds (waited 5.000 seconds) [ci skip]