aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
Commit message (Collapse)AuthorAgeFilesLines
...
* 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]
* | | Merge pull request #21534 from Vratislav/clarify-custom-config-guideRafael Mendonça França2015-09-071-1/+1
|/ / | | | | [Rails Guides] Clarify custom code configuration [ci skip]
* | Fix Configuring Active Record [ci skip]Alexey Markov2015-08-271-2/+2
| |
* | Make disable_with default in submit_tagJustin Schiff2015-08-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevents double submission by making disable_with the default. Default disable_with option will only be applied if user has not specified her/his own disable_with option, whether that is in the `data-disable-with` string form or the `:data => { :disable_with => "Saving..." }` hash form. disable_with will default to the value attribute. A configuration option was added to opt out of this functionality if the user so desires. `config.action_view.automatically_disable_submit_tag = false`
* | [ci skip] `field_error_proc` is used in ↵yui-knk2015-07-291-1/+1
| | | | | | | | | | | | `ActionView::Helpers::ActiveModelInstanceTag` so replace `Active Record` with `Active Model`
* | [skip ci] Improve grammar/style in DB pooling guide.Tim Wade2015-07-161-7/+7
| |
* | Merge pull request #20736 from antoine-lizee/docsRobin Dupret2015-07-131-1/+1
|\ \ | | | | | | [ci skip] docs: making clear that perform_caching has a limited impact
| * | [ci skip] doc: making clear that perform_caching has a limited impactantoine.lizee2015-07-131-1/+1
| | |
* | | Merge pull request #20741 from radar/integration_tool_docRafael Mendonça França2015-06-301-1/+1
|\ \ \ | |/ / |/| | Improve integration_tool documentation
| * | integration_tool defaults to :test_unitRyan Bigg2015-06-301-1/+1
| |/ | | | | | | | | | | | | | | | | | | As per railties/lib/rails/test_unit/railtie.rb, where it sets it explicitly. This can be confirmed by starting a new Rails console session in a new app and running this code: Rails.application.config.app_generators.rails[:integration_tool] I also beefed up the documentation slightly to be more explicit about what this configuration setting does.
* | Tiny documentation edits [ci skip]Robin Dupret2015-06-071-1/+2
| |