aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
Commit message (Collapse)AuthorAgeFilesLines
* Update configuration guide about ActiveRecord's config option.Stan Lo2017-02-101-0/+5
|
* Merge pull request #27954 from maclover7/jm-fix-26404Jon Moss2017-02-091-0/+10
|\ | | | | Add note about breakage in file uploads in controller tests to upgrading guide
| * Add note about breakage in file uploads in controller tests to upgradingJon Moss2017-02-091-0/+10
| | | | | | | | | | | | | | | | guide ref #26404 [ci skip]
* | Fix wordingJonathan Chen2017-02-091-1/+1
| |
* | remove `ActiveSupport.halt_callback_chains_on_return_false` from everywhereyuuji.yaginuma2017-02-081-2/+0
| |
* | remove link to edgeapi [ci skip]yuuji.yaginuma2017-02-081-1/+1
| |
* | Merge pull request #27232 from robin850/guides-linkingXavier Noria2017-02-071-1/+1
|\ \ | |/ |/| Improve linking inside guides
| * Automatically inject the current Rails version in API links [ci skip]Robin Dupret2017-02-071-1/+1
| | | | | | | | | | | | | | To make sure that the user won't look at a feature that doesn't already exist if they are looking at a previous version of the guides, let's automatically inject the Rails version the guides have been generated against.
* | Fix typo in guide: _articles should be _articleMatthew Eagar2017-02-031-1/+1
| | | | | | | | | | | | | | The guide contains a typo in the "local_assigns" section, where rendering a model named 'Article' via `render @articles` is shown to render a partial called `_articles.html.erb`, when in fact the necessary partial name is `_article.html.erb`
* | Added warning for reserved YAML keywords.Rich Seviora2017-01-301-0/+29
|/ | | | | | Update i18n.md Addressed Feedback
* Fix judgement spelling [ci skip]Carlos Gavino2017-01-281-1/+1
| | | | | `judgment` is the preferred form as Rails usually follows en-us spelling not en-gb.
* Action Mailer Basics clean up [ci skip]Scott González2017-01-251-2/+2
|
* Clean up wording in Action Mailer Basics [ci skip]Scott González2017-01-211-2/+2
|
* Mention ActiveRecord's config.example.ymlOlivier Lacan2017-01-191-4/+6
| | | | This will help people figure out what credentials and tables are required to run ActiveRecord specs.
* Various style + grammar fixes for #27719Jon Moss2017-01-181-8/+10
| | | | [ci skip]
* update links of pluralization in i18n guideHisashi Kamezawa2017-01-181-1/+1
|
* Update ActionCable guide to better describe SubscriptionAdapter configuration.Chad Ingram2017-01-171-3/+22
|
* allow to pass describe option to rakeyuuji.yaginuma2017-01-171-1/+1
| | | | | | Since `Thor::HELP_MAPPINGS` contains `-D`, so `bin/rails -D` show rails's help. But, in Rails 5.0.1, `bin/rails -D` show the description of rake task. I think that it is better to have the same behavior.
* Revert "Merge pull request #27686 from koic/friendly_bigdecimal_inspect"Kasper Timm Hansen2017-01-151-9/+1
| | | | | | | | | | | | | The exact inspect output of a BigDecimal is out of scope for what we're trying to communicate about `dup` and `duplicable?` here. Adding two examples distracts is disctracting, so keep the docs from before since our minimal version is Ruby 2.2.2. [ Koichi ITO, Jon Moss, Kasper Timm Hansen ] This reverts commit 2163874dedaf83e67599c2930c2686caa165fbad, reversing changes made to 46fdbc5290335ed38fa9fe2b6b0ef8abe4eccb1b.
* Several representation of BigDecimal has changed in Ruby 2.4.0+ [ci skip]Koichi ITO2017-01-151-1/+9
| | | | cf. https://github.com/ruby/bigdecimal/pull/42
* Add duration constructors for use in Numeric extensionsAndrew White2017-01-121-1/+1
| | | | | The Numeric extensions like 1.day, 1.month, etc. shouldn't know how the internals of ActiveSupport::Duration works.
* Merge pull request #27610 from Envek/fix_and_speed_up_duration_parsingAndrew White2017-01-121-1/+1
|\ | | | | Fix inconsistent parsing of Durations with both months and years
| * Fix inconsistent results when parsing large durations and constructing ↵Andrey Novikov2017-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | durations from code ActiveSupport::Duration.parse('P3Y') == 3.years # It should be true Duration parsing made independent from any moment of time: Fixed length in seconds is assigned to each duration part during parsing. Changed duration of months and years in seconds to more accurate and logical: 1. The value of 365.2425 days in Gregorian year is more accurate as it accounts for every 400th non-leap year. 2. Month's length is bound to year's duration, which makes sensible comparisons like `12.months == 1.year` to be `true` and nonsensical ones like `30.days == 1.month` to be `false`. Calculations on times and dates with durations shouldn't be affected as duration's numeric value isn't used in calculations, only parts are used. Methods on `Numeric` like `2.days` now use these predefined durations to avoid duplicating of duration constants through the codebase and eliminate creation of intermediate durations.
* | Add missing release notes entry for ↵Prathamesh Sonpatki2017-01-091-0/+3
|/ | | | https://github.com/rails/rails/commit/f02a35b86efea24f1e2ab684bc8081ced5eb3b1a [ci skip]
* Merge pull request #25427 from eugeneius/update_increment_documentationKasper Timm Hansen2017-01-081-2/+0
|\ | | | | Update increment! documentation [ci skip]
| * Update increment! documentation [ci skip]Eugene Kenny2016-08-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | The `increment!` and `decrement!` methods were recently reimplemented to make them safe to call from multiple connections concurrently. This changed their behaviour in a few ways. Previously they used `update_attribute`, which calls the attribute setter method, runs callbacks, and touches the record. Now they behave more like `update_column`, writing the update to the database directly and bypassing all of those steps.
* | Fix typo in asset_pipeline.md [ci skip]kenta-s2017-01-051-2/+2
| |
* | Merge pull request #27446 from zachahn/asset-hash-md5-to-sha256Rafael França2017-01-041-22/+24
|\ \ | | | | | | Update asset fingerprinting information
| * | Update asset fingerprinting informationZach Ahn2016-12-231-22/+24
| | | | | | | | | | | | | | | | | | | | | - Replaced MD5 => SHA256 where necessary - Updated sprockets manifest example See: https://github.com/rails/sprockets/blob/dd9b3b53c06c602c49057bc4a426c1a446ed7a4a/lib/sprockets.rb#L26
* | | Merge pull request #27552 from jarijokinen/fix-default-locale-code-exampleAndrew White2017-01-041-5/+10
|\ \ \ | | | | | | | | Fix default locale code example [ci skip]
| * | | Add instructions for available_locales [skip ci]Jari Jokinen2017-01-041-5/+10
| | | |
* | | | Clarify Bi-directional Associations docsDavid Sherline2017-01-031-23/+41
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rails automatically finds bi-directional associations between models with well-named associations. However, when using non-standard naming, you have to use :inverse_of to explicitly tell Rails about the bi- directional association. With reference to #27516 [ci skip]
* | | Update schema cache doc in guides/command_lineKir Shatrov2016-12-311-2/+2
| | |
* | | [ci skip] Rejigger the dublicable? wording a bit.Kasper Timm Hansen2016-12-291-9/+12
| | |
* | | Merge pull request #27346 from utilum/core_ext_guide_duplicableKasper Timm Hansen2016-12-291-17/+31
|\ \ \ | | | | | | | | Update list of `duplicable?` objects in AS core_ext guide [ci skip]
| * | | Update list of `duplicable?` objects in AS core_ext guide [ci skip]utilum2016-12-231-17/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Complex and Rational objects can not be duplicated. Duplicable objects in Ruby 2.4.0 include: - most numbers - symbols - `nil` - `true` - `false`
* | | | Use proper output format [ci skip] (#27498)प्रथमेश Sonpatki2016-12-291-1/+1
| | | |
* | | | Revert "Revert "Merge pull request #17943 from ↵Rafael Mendonça França2016-12-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jeremywadsack/doc_cache_importability"" This reverts commit 6961afefd2f163f30b9ae3aacb74b290287f9a80. We were not able to keep backward compatibility in this case so it is better to ask people to upgrade with cold cache.
* | | | public methods can be placed after private ones if you want toAkira Matsuda2016-12-251-1/+1
| | | | | | | | | | | | | | | | [ci skip]
* | | | Abuse of protected in guidesAkira Matsuda2016-12-253-5/+5
| |/ / |/| |
* | | fix typo in getting_started [ci skip] (#27423)yachibit2016-12-211-1/+1
| | |
* | | [ci skip] Update initialization guide samples.Kasper Timm Hansen2016-12-201-81/+84
| | | | | | | | | | | | Rewrite bits and pieces to mention the command infrastructure.
* | | Merge pull request #27365 from baweaver/patch-1Eileen M. Uchitelle2016-12-191-0/+8
|\ \ \ | | | | | | | | Add note on defaults block option
| * | | Add note on defaults block optionBrandon Weaver2016-12-141-0/+8
| | | | | | | | | | | | When I was looking for how to default the entire routes file to JSON I could only find the postfix option. It was mentioned on IRC that you could do this with a block as well and I had not found it in the documentation.
* | | | How to disable scaffolds.scss in generators.md (#27383)Eike Send2016-12-171-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | * How to disable scaffolds.scss in generators.md * Improves workflow customization text in generators.md
* | | | [ci skip] add a section explaining command line arguments for generatorsKevin Hughes2016-12-161-0/+20
| | | |
* | | | Merge branch 'master' of github.com:rails/docrailsVijay Dev2016-12-161-1/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Remove mention of SafeErb gem [ci skip]Prathamesh Sonpatki2016-11-191-1/+1
| | | | | | | | | | | | | | | | Followup of https://github.com/rails/rails/pull/27086
* | | | Mention JS Runtime dependency in dev dependencies guide [ci skip].utilum2016-12-141-0/+4
| |/ / |/| |
* | | remove deprecated `assert_send` from assertion list [ci skip]yuuji.yaginuma2016-12-091-1/+0
| | | | | | | | | | | | | | | `assert_send` was deprecated in minitest 5.10.0. Ref: https://github.com/seattlerb/minitest/commit/f95ef007ec64d956d88fedc37fd2ed7e106b777e