Commit Graph

4969 Commits

Author SHA1 Message Date
Ruy Diaz b5c56090ee Add anchor links to all headers
To allow easy linking at all levels and not just from index
2017-04-01 21:35:20 -07:00
Ross Kaffenberger 9aeba503c4 Add default_scope note to AR guide [ci skip]
Adds note to explain unexpected behavior described in issue #28561.
Developers may be surprised that the internal representation of similar
query conditions in Hash and Array formats in default_scope will yield 
different results for model initialization.
Link: https://github.com/rails/rails/issues/28561
2017-03-31 18:11:15 -04:00
Jon Moss b68aae003a Small grammar fix
[ci skip]
2017-03-30 15:57:32 -04:00
Jon Moss f77a6be8d2 Small grammar fix
Add comma and change verb.

[ci skip]
2017-03-29 16:14:06 -04:00
Rafael França 2d0d611c4d Merge pull request #28595 from 3wille/fw-after-action-hint
add hint on after_action filters
2017-03-29 13:08:02 -04:00
Ryunosuke Sato 40f226ae94 Fix link to rails-ujs
https://github.com/rails/rails-ujs is merged into actionview in favor of https://github.com/rails/rails/pull/28098.
[skip ci]
2017-03-30 01:10:20 +09:00
Frederik Wille 2b3a3738b7 add hint on after_action filters
Adds a hint that ``after_action``-callbacks are not executed when an
exception was raised in the rest of the request cycle. The
``before_action`` section mentions "If there are additional filters
scheduled to run after that filter, they are also cancelled." but this
is IMO not sufficient.
2017-03-29 15:51:12 +02:00
Jon Moss 3f27c9cbe9 Small grammar fix
Add apostrophe.

[ci skip]
2017-03-25 12:18:29 -04:00
Jon Moss b8c330cb69 Small grammar fix
Add necessary commas.

[ci skip]
2017-03-25 12:17:37 -04:00
Jon Moss 430f1e02fa Update middleware list
Taken from `bin/rails about` run on a v5.1.0.rc1 application.

[ci skip]
2017-03-25 11:52:16 -04:00
Jon Moss aaa9a5b5d8 Upgrade various Rails 5.0 references to 5.1
RC1 is out, `5-1-stable` has been created, figured it was time to start
updating this stuff :)

[ci skip]
2017-03-25 11:45:46 -04:00
Jon Moss f116d36c93 Add WIP Rails 5.1 release notes to documents.yaml
[ci skip]
2017-03-25 11:27:28 -04:00
yuuji.yaginuma c096262f61 Rename local variable name `current_user` to `verified_user` [ci skip]
Related #28570
2017-03-25 20:57:40 +09:00
Vijay Dev 09436fb6d6 Merge branch 'master' of github.com:rails/docrails 2017-03-25 11:26:31 +00:00
Vipul A M 684de497a8 Doc cleanup for caching guide [ci skip] (#28556) 2017-03-24 18:14:01 +05:30
Jon Moss 2f3e12b823 Merge pull request #28550 from rachel-carvalho/update_browser_compatibility_for_http_verbs
Update guide to reflect browser compatibility for HTTP verbs
2017-03-23 16:30:01 -04:00
Rachel Carvalho aed7bb6748 update guide to reflect browser compatibility for HTTP verbs [ci skip] 2017-03-23 16:22:04 -04:00
brchristian 9e14f42a2e Additional explanation about cache implementations 2017-03-23 10:00:04 -07:00
Matthew Draper afbbcf24d7 Update bug report templates 2017-03-22 10:11:43 +10:30
Matthew Draper 6c08d480f1 Start Rails 5.2 development 2017-03-22 10:11:39 +10:30
Hendy Tanata 3b51c8a591 Update Configuring Rails Component guide example
config.time_zone is no longer in included in config/application.rb.

See 28dcadc014.
2017-03-21 08:49:48 -07:00
Erol Fornoles 17545b4d88
Fix typo in Caching with Rails Guide [skip ci] 2017-03-21 09:21:51 +08:00
Rafael Mendonça França 5c0d00072d
Update the maintenance policy [ci skip] 2017-03-20 15:04:57 -04:00
Jon Moss 8a808d5ca0 Merge pull request #28477 from spdawson/patch-3
Remove stray back-end from ActiveJob Basics guide
2017-03-19 10:34:54 -04:00
Simon Dawson 8ee1683698 Remove stray back-end from ActiveJob Basics guide
The hyphenated form "back-end" only appears once in this guide; elsewhere, the un-hyphenated form "backend" is used consistently.
2017-03-19 08:34:47 +00:00
Simon Dawson aa56c89eb2 Minor grammar fixes for Rails 5.1 release notes 2017-03-19 08:31:49 +00:00
Jon Moss 9cc2f50f9c Update some jquery-ujs references to rails-ujs
[ci skip]
2017-03-18 22:41:15 -04:00
Jon Moss 5e8dfcd12d Add link to rails-ujs/dropping jQuery PR
[ci skip]
2017-03-18 22:20:01 -04:00
Jon Moss 061927b4a8 Add link to Webpack/Webpacker PR
[ci skip]
2017-03-18 22:15:27 -04:00
Jon Moss cb12b2a075 Second pass on 5.1 release notes
[ci skip]
2017-03-18 22:09:53 -04:00
Jon Moss 33786f62f9 First pass on 5.1 release notes
Fixing tons of grammar, etc.

[ci skip]
2017-03-18 22:07:20 -04:00
James Baer da7c4126d3 Improve Caching with Rails Guides [ci skip]
Adds the "Caching in Development" section to
demonstrate usage of the dev:cache task in development mode.

Also, makes a small grammatical correction in section 2.4.
2017-03-17 16:02:24 -04:00
Rafael Mendonça França 7b02f86680
Fix resolve usage in the release notes
[ci skip]
2017-03-17 13:14:51 -04:00
Rafael França c053d95481 Merge pull request #28096 from prathamesh-sonpatki/5-1-release-notes-first-draft
Add first draft of release notes for Rails 5.1 🎉
2017-03-17 13:13:36 -04:00
Rafael França 3666962dd0 Merge pull request #28318 from bogdanvlviv/remove-ability-update-locking_column-value
Remove ability update locking_column value
2017-03-17 11:28:50 -04:00
Vipul A M d730e74bce Merge pull request #28421 from tangposmarvin/docs-assest-pipeline
Fix guide incorrectly refers to public/assets/images [ci ckip]
2017-03-17 12:22:35 +05:30
marvin 5a09b3fd6b Fix asset_pipeline docs incorrect image dir info 2017-03-16 19:42:00 +08:00
bogdanvlviv 5a072ba317 Remove ability update locking_column value 2017-03-16 10:42:33 +02:00
marksiemers dcd6ceb0c9 Update 'Building Complex Forms' with `inverse_of`
If the example for complex forms is implemented, ActiveRecord will prevent saving unless `inverse_of: :person` is added to the `has_many :addresses` association.
2017-03-15 12:38:49 -07:00
Eugene Kenny a05845e0a6 Remove unused `@txn` variable
This was added in c24c885209, removed in
b89ffe7f00, and then (unintentionally?)
reintroduced in 2d7ae1b08e.
2017-03-15 12:14:46 +00:00
Philipe Fatio 96c525f250
Remove obsolete warning about regular expression
This warning became obsolete when the regular expression was changed to
use `\z` instead of `\Z` in fce9c4e5e1.

    "-1234\n" =~ /\A[+-]?\d+\Z/ => 0
    "-1234\n" =~ /\A[+-]?\d+\z/ => nil

[ci skip]
2017-03-14 10:57:50 +01:00
Prathamesh Sonpatki b4dbe8c733
Add blurbs about each new feature [ci skip] 2017-03-13 09:41:42 +08:00
Jon Moss 89d6641089 Fix weird documentation line
[ci skip]
2017-03-12 13:11:53 -04:00
Jon Moss 21a44916ae Second editing pass on "Active Model Basics" guide
Lots of grammar, etc fixes.

[ci skip]
2017-03-12 11:37:15 -04:00
Jon Moss 8f9241b076 First editing pass on "Active Model Basics" guide
Lots of grammar, etc fixes.

[ci skip]
2017-03-12 11:25:54 -04:00
Vipul A M 4d5060072b Add link to mentioned API [ci skip] (#28392) 2017-03-12 19:37:48 +05:30
Vipul A M 1aa8b509a0 Merge pull request #27152 from tjai89/patch-5
Add link to API documentation [ci skip]
2017-03-12 19:30:00 +05:30
bogdanvlviv 5c2678056a Fix typo in the security guide
[ci skip]
2017-03-12 12:10:18 +02:00
James Baer dcc9bd35e2 Improve readability of testing guide [ci skip]
Small change to improve the readability in section 2.3 of the testing
guide.
2017-03-10 14:28:52 -05:00
Vipul A M 7724c8cb53
Edits to Systems testing section [ci skip] 2017-03-09 20:05:13 +05:30
Xavier Noria 37770bc8d1 force UTF-8 as external encoding in guides generation [ci skip]
See the rationale in the comment found in the patch.
2017-03-09 09:43:38 +01:00
Shia ac00659b1b Fix to use correct path with language on guide 2017-03-08 10:54:06 +09:00
Vipul A M 355a2fcfe9 Merge pull request #28289 from maicher/master
Improve foreign key description in guides
2017-03-07 18:45:35 +05:30
yuuji.yaginuma 12cadc6f62 Remove `:on` option that does ot exist [ci skip]
That option was removed in 0a683085b1
2017-03-07 15:40:52 +09:00
Krzysztof Maicher e1567d0d3a Improve foreign key description in guides [ci skip] 2017-03-06 14:43:10 +01:00
Eileen M. Uchitelle 797ed5e61f Merge pull request #28286 from robin850/skip-system-tests-by-default
Avoid running system tests by default
2017-03-05 08:54:28 -05:00
Robin Dupret 4a77213eea Avoid running system tests by default
These tests may be expansive so let's only allow users to run them
through `bin/rails test:system` or by passing a path to the `test`
command.

The same applies for `bin/rake test`.

Refs #28109.
2017-03-05 13:24:43 +01:00
Vijay Dev 12038f6505 Merge branch 'master' of github.com:rails/docrails 2017-03-04 19:35:25 +00:00
Robin Dupret b5dc1f6dea Merge pull request #28284 from y-yagi/fix_system_test_example
Fx system test example [ci skip]
2017-03-04 11:53:51 +01:00
yuuji.yaginuma 780434d88f Fx system test example [ci skip]
Since test suffix is automatically granted, it is not necessary to
specify it in generator.
Also, updated the generated file to contents actually generated.
2017-03-04 19:09:40 +09:00
Vipul A M fd3c6eadbb Escapes and edits to configuring guide [ci skip] (#28280) 2017-03-04 12:19:28 +05:30
Vipul A M c0f621ae63
Fix generated query in Retrieving specific data from multiple tables section [ci skip] 2017-03-04 11:44:25 +05:30
Ryuta Kamizono 64b797dee1 Merge pull request #28265 from 0oneo/association_guide
passing unique parameter to belongs_to wrongly
2017-03-04 10:34:03 +09:00
Jonathan Chen 8efda4a9c0 Fix spelling
[ci skip]
2017-03-03 15:20:00 -05:00
0oneo 8b4e39b13d passing unique parameter to belongs_to wrongly
passing `unique` parameter to belongs_to not right,
2017-03-03 22:40:27 +08:00
Erol Fornoles 3a35f101b7
Fix typo in Upgrading Ruby on Rails Guide [skip ci] 2017-03-03 17:02:00 +08:00
Prathamesh Sonpatki d8fd067969
Add PR links for major features [ci skip] 2017-03-03 12:32:19 +05:30
Prathamesh Sonpatki ff7a0efced
Add first draft of release notes for Rails 5.1 🎉
[ci skip]
2017-03-03 12:32:19 +05:30
Shay 069e33de66 fixed suspected typo in sample sql query 2017-03-02 20:55:30 +02:00
James Baer 6bee72db6a Improve documentation for Testing Your Mailers [ci skip]
The current Basic Test Case example has the following assertion

```
  assert_equal read_fixture('invite').join, email.body.to_s

```

email.body.to_s returns an empty string if both HTML and text templates
exist for a given mailer. This commit adds a note to section 11.2.2
explaining this and also suggests using email.text_part.body.to_s
and email.html_part.body.to_s as alternatives.
2017-02-28 09:09:33 -05:00
Anne Johnson acb4b46076 Update i18n guide to cover :zero key support in pluralization [ci skip] 2017-02-26 16:02:08 -05:00
yuuji.yaginuma 08df808b41 Use released arel
Follow up to ea9566f6cd
2017-02-26 19:55:52 +09:00
Robin Dupret e690a92b44 Soft-deprecate the top-level HashWithIndifferentAccess class
Since using a `ActiveSupport::Deprecation::DeprecatedConstantProxy`
would prevent people from inheriting this class and extending it
from the `ActiveSupport::HashWithIndifferentAccess` one would break
the ancestors chain, that's the best option we have here.
2017-02-25 00:29:43 +01:00
Laurent Arnoud d150ef00c5
Fix w3c_validator.rb validation script 2017-02-23 21:57:01 +01:00
Rafael Mendonça França f4acdd83ff
Preparing for 5.1.0.beta1 release 2017-02-23 14:53:21 -05:00
yuuji.yaginuma 6987c7c763 remove needless extension from system test example [ci skip] 2017-02-22 11:01:13 +09:00
Celso Fernandes 5f1430564f [doc] Fix wrong class name in testing.md
As the specified command is `rails g system_test articles`, the generated class name
is `ArticlesTest`, not `UsersTest`
2017-02-21 21:42:44 -03:00
Rafael Mendonça França ea9566f6cd
Use released arel 2017-02-21 11:46:42 -05:00
Robin Dupret 658b524435 Tiny documentation edits [ci skip] 2017-02-21 16:23:49 +01:00
kenta-s 5d3abc06c3 Fix some grammar in docs [ci skip] 2017-02-21 13:48:41 +09:00
eileencodes 42a6dbdf84 Clean up documentation
There were some grammar issues and incorrect information in the system
tests documentation.
2017-02-20 16:08:20 -05:00
eileencodes 2d61c5d846 Rename system_test_helper -> application_system_test_case
This renames the system test helper file to be application system test
case to match what the rest of Rails does. In the future we should
consider changing the test_helper to match.
2017-02-20 15:07:35 -05:00
eileencodes 1a0ca84a06 Move and rename system tests
* Move system tests back into Action Pack
* Rename `ActionSystemTest` to `ActionDispatch::SystemTestCase`
* Remove private base module and only make file for public
`SystemTestCase` class, name private module `SystemTesting`
* Rename `ActionSystemTestCase` to `ApplicationSystemTestCase`
* Update corresponding documentation and guides
* Delete old `ActionSystemTest` files
2017-02-20 15:07:35 -05:00
eileencodes 893c3b6282 Update documentation and guides
Update the documentation after rewriting a majority of the functionality
for system testing.
2017-02-20 15:07:34 -05:00
eileencodes 62c7d98384 Add guides for system testing
This adds the required guides for how to write and use system tests in
your application.
2017-02-20 15:07:34 -05:00
Vitali Tatarintev 7718d470e9 [ci skip] Update Guides to use macOS instead of Mac OS X 2017-02-20 15:12:51 +01:00
Jon Moss 74689fda0c Merge pull request #28058 from y-yagi/follow_up_to_27608
Remove deprecate passing string to `:if` and `:unless` conditional options [ci skip]
2017-02-17 20:54:21 -05:00
yuuji.yaginuma 53ff5fc62f Remove deprecate passing string to `:if` and `:unless` conditional options [ci skip]
Follow up to #27608
2017-02-18 10:36:51 +09:00
Richard fc9a2dc14c Change engines guide to demonstrate maintained forum
Change Rails engine guide to references a maintained project
Thredded instead of the abandoned project Forem. I chose
Thredded as Forem's closing note (below) suggests the choice.
https://github.com/rubysherpas/forem/blob/rails4/README.md
2017-02-17 18:47:45 +00:00
Erol Fornoles 36176c51d3
Fix typo in I18n Guide [ci skip] 2017-02-17 16:38:38 +08:00
Xavier Noria b61a029782 document link processing in guides generation [ci skip] 2017-02-12 11:41:01 +01:00
Xavier Noria 771a802c37 refactors and fixes in guides generation [ci skip]
This commit is not precisely atomic, but the changes have evolved, summary:

* The ENV-based interface has been moved upwards, the generator has now a conventional
  initializer.

* RAILS_VERSION is now assumed to be a Git tag. A blank RAILS_VERSION means edge guides.

* In consequence, the EDGE env variable is gone.

* The "local" version is also gone, the current SHA1 is computed for edge guides.

* Assumes guides are generated from a repo checkout (time ago users could
  generate them from gems.)

* The WARNINGS flag is gone in consequence, you cannot disable warnings.

* The `api_link` Markdown helper is fixed.

* Docs about usage have one single place: rake guides:help.

* Links in guides have been revised.
2017-02-12 10:33:50 +01:00
Kasper Timm Hansen eb4aba0052 [ci skip] Fully qualify missing template error.
Switch extension 👉 format as it's more apt here.
2017-02-11 21:58:36 +01:00
Kasper Timm Hansen 40ae9a916f Merge pull request #27870 from kenta-s/get-todo-done-in-render_test
Get TODO done in `render_test`
2017-02-11 21:47:13 +01:00
Rafael Mendonça França f04a49b033
Fix rubocop violations 2017-02-09 23:13:41 -03:00
Stan Lo d1317ae08e Update configuration guide about ActiveRecord's config option. 2017-02-10 09:08:20 +08:00
Jon Moss cabb212976 Merge pull request #27954 from maclover7/jm-fix-26404
Add note about breakage in file uploads in controller tests to upgrading guide
2017-02-09 16:28:16 -05:00
Jon Moss e3dae16d5f Add note about breakage in file uploads in controller tests to upgrading
guide

ref #26404

[ci skip]
2017-02-09 15:50:29 -05:00
Jonathan Chen 58b4448678 Fix wording 2017-02-09 06:50:00 -05:00
yuuji.yaginuma 70e8fed5a3 remove `ActiveSupport.halt_callback_chains_on_return_false` from everywhere 2017-02-08 17:24:49 +09:00
yuuji.yaginuma 529cebe22f remove link to edgeapi [ci skip] 2017-02-08 08:23:53 +09:00
Xavier Noria 770e685c22 Merge pull request #27232 from robin850/guides-linking
Improve linking inside guides
2017-02-07 12:51:49 -08:00
Robin Dupret ea141d62df Automatically link to Ruby files referenced in notes [ci skip]
To ease reading the "Active Support Core Extensions" guide, let's
automatically link references to Ruby files.

It's also possible to reference other components' files in the even
though it's not used in the guides at the moment.

[Petr Skocik & Robin Dupret]
2017-02-07 21:45:53 +01:00
Robin Dupret 0676d28b22 Automatically inject the current Rails version in API links [ci skip]
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.
2017-02-07 18:56:43 +01:00
kenta-s 3ea926b86a Add information on `:formats` option in action_view_overview.md 2017-02-06 21:47:08 +09:00
Matthew Eagar d9ba3b1e55 Fix typo in guide: _articles should be _article
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`
2017-02-03 11:46:08 -05:00
Rich Seviora d4ddf7b72f Added warning for reserved YAML keywords.
Update i18n.md

Addressed Feedback
2017-01-30 15:02:01 -08:00
Carlos Gavino d81f2953f4 Fix judgement spelling [ci skip]
`judgment` is the preferred form as Rails usually follows en-us spelling
not en-gb.
2017-01-28 21:05:25 +08:00
Daniel Martin c85a9714ba Bump bug report template versions to 5.0.1 2017-01-26 10:43:32 +01:00
Scott González 175e7efbc1 Action Mailer Basics clean up [ci skip] 2017-01-25 16:17:12 -05:00
Scott González d09be0b005 Clean up wording in Action Mailer Basics [ci skip] 2017-01-21 10:54:36 -05:00
Olivier Lacan c354eafd02 Mention ActiveRecord's config.example.yml
This will help people figure out what credentials and tables are required to 
run ActiveRecord specs.
2017-01-19 19:43:44 +01:00
Jon Moss 9465acd691 Various style + grammar fixes for #27719
[ci skip]
2017-01-18 15:22:02 -05:00
Hisashi Kamezawa bb8e892ea0 update links of pluralization in i18n guide 2017-01-18 17:31:52 +09:00
Chad Ingram f18d1e1e52 Update ActionCable guide to better describe SubscriptionAdapter configuration. 2017-01-17 23:37:28 -05:00
yuuji.yaginuma 073f4ecb14 allow to pass describe option to rake
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.
2017-01-17 14:14:59 +09:00
Kasper Timm Hansen 7c3a99eeca Revert "Merge pull request #27686 from koic/friendly_bigdecimal_inspect"
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 2163874ded, reversing
changes made to 46fdbc5290.
2017-01-15 19:49:34 +01:00
Koichi ITO 7b3d663b4d Several representation of BigDecimal has changed in Ruby 2.4.0+ [ci skip]
cf. https://github.com/ruby/bigdecimal/pull/42
2017-01-15 12:01:55 +09:00
Andrew White 9ae511f550 Add duration constructors for use in Numeric extensions
The Numeric extensions like 1.day, 1.month, etc. shouldn't know
how the internals of ActiveSupport::Duration works.
2017-01-12 10:05:16 +00:00
Andrew White 033f654027 Merge pull request #27610 from Envek/fix_and_speed_up_duration_parsing
Fix inconsistent parsing of Durations with both months and years
2017-01-12 07:20:28 +00:00
Andrey Novikov cb9d0e4864
Fix inconsistent results when parsing large durations and constructing 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.
2017-01-09 23:04:48 +03:00
Prathamesh Sonpatki 69c3b47ca1
Add missing release notes entry for f02a35b86e [ci skip] 2017-01-09 14:05:22 +05:30
Kasper Timm Hansen 7f19f30819 Merge pull request #25427 from eugeneius/update_increment_documentation
Update increment! documentation [ci skip]
2017-01-08 20:56:38 +01:00
kenta-s 750c452f63 Fix typo in asset_pipeline.md [ci skip] 2017-01-05 12:42:35 +09:00
Rafael França b1df82e412 Merge pull request #27446 from zachahn/asset-hash-md5-to-sha256
Update asset fingerprinting information
2017-01-04 13:14:56 -05:00
Andrew White d304aefc91 Merge pull request #27552 from jarijokinen/fix-default-locale-code-example
Fix default locale code example [ci skip]
2017-01-04 10:52:31 +00:00
Jari Jokinen 864ef6be9e Add instructions for available_locales [skip ci] 2017-01-04 12:39:30 +02:00
David Sherline 186327f74a
Clarify Bi-directional Associations docs
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]
2017-01-03 09:10:36 -06:00
Kir Shatrov 3e4b7ecc28 Update schema cache doc in guides/command_line 2016-12-31 11:42:23 -05:00
Rafael Mendonça França e646bad5b7
Remove deprecated support to passing a column to #quote 2016-12-29 17:53:03 -05:00
Kasper Timm Hansen f2f4fecdf4 [ci skip] Rejigger the dublicable? wording a bit. 2016-12-29 20:20:34 +01:00
Kasper Timm Hansen 80ddb7ee2e Merge pull request #27346 from utilum/core_ext_guide_duplicable
Update list of `duplicable?` objects in AS core_ext guide [ci skip]
2016-12-29 20:12:19 +01:00
प्रथमेश Sonpatki 415e17d0b5 Use proper output format [ci skip] (#27498) 2016-12-29 18:27:48 +05:30
Rafael Mendonça França fcec126eaa
Revert "Revert "Merge pull request #17943 from jeremywadsack/doc_cache_importability""
This reverts commit 6961afefd2.

We were not able to keep backward compatibility in this case so it is
better to ask people to upgrade with cold cache.
2016-12-29 01:33:01 -05:00
Rafael Mendonça França 010e246756
Fix Rubocop violations and fix documentation visibility
Some methods were added to public API in
5b14129d8d and they should be not part of
the public API.
2016-12-28 21:53:51 -05:00
Akira Matsuda 9d9a4bd7cf public methods can be placed after private ones if you want to
[ci skip]
2016-12-25 02:19:35 +09:00
Akira Matsuda 0e109c8710 Abuse of protected in guides 2016-12-25 02:15:32 +09:00
Zach Ahn 8e311940ef Update asset fingerprinting information
- Replaced MD5 => SHA256 where necessary
- Updated sprockets manifest example

See: dd9b3b53c0/lib/sprockets.rb (L26)
2016-12-23 20:23:07 -05:00
utilum 194f97c51e Update list of `duplicable?` objects in AS core_ext guide [ci skip]
Complex and Rational objects can not be duplicated.

Duplicable objects in Ruby 2.4.0 include:
- most numbers
- symbols
- `nil`
- `true`
- `false`
2016-12-23 19:52:36 +01:00
yachibit 85b2a3ea2f fix typo in getting_started [ci skip] (#27423) 2016-12-21 21:44:53 +05:30
Kasper Timm Hansen e592ee20a9 [ci skip] Update initialization guide samples.
Rewrite bits and pieces to mention the command infrastructure.
2016-12-20 20:13:22 +01:00
Eileen M. Uchitelle b61fa5c97e Merge pull request #27365 from baweaver/patch-1
Add note on defaults block option
2016-12-19 09:25:58 -05:00
Bian Jiaping 88792b1b2e Fix rake guides:generate:kindle error 2016-12-18 23:13:50 +08:00
Eike Send 28e49c711e How to disable scaffolds.scss in generators.md (#27383)
* How to disable scaffolds.scss in generators.md

* Improves workflow customization text in generators.md
2016-12-17 12:29:55 -05:00
Kevin Hughes 5578ce4036
[ci skip] add a section explaining command line arguments for generators 2016-12-16 11:16:16 -05:00
Vijay Dev 0aae8aec3b Merge branch 'master' of github.com:rails/docrails 2016-12-16 15:21:06 +00:00
Brandon Weaver 6a116bd909 Add note on defaults block option
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.
2016-12-14 17:17:44 -08:00
utilum 7d62e27dd5 Mention JS Runtime dependency in dev dependencies guide [ci skip]. 2016-12-14 16:08:44 +01:00
yuuji.yaginuma 7fab05008c remove deprecated `assert_send` from assertion list [ci skip]
`assert_send` was deprecated in minitest 5.10.0.
Ref: f95ef007ec
2016-12-09 16:12:56 +09:00
yuuji.yaginuma d71f289fb2 stop using removed `render :text`
Follow up to 79a5ea9ead
2016-12-03 15:28:59 +09:00