diff options
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/6_0_release_notes.md | 2 | ||||
-rw-r--r-- | guides/source/autoloading_and_reloading_constants.md | 2 | ||||
-rw-r--r-- | guides/source/form_helpers.md | 2 | ||||
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 14 |
4 files changed, 17 insertions, 3 deletions
diff --git a/guides/source/6_0_release_notes.md b/guides/source/6_0_release_notes.md index 36b42db6b2..78bf477594 100644 --- a/guides/source/6_0_release_notes.md +++ b/guides/source/6_0_release_notes.md @@ -430,7 +430,7 @@ Please refer to the [Changelog][active-record] for detailed changes. * Deprecate using class level querying methods if the receiver scope has leaked. ([Pull Request](https://github.com/rails/rails/pull/35280)) -* Deprecate `config.activerecord.sqlite3.represent_boolean_as_integer`. +* Deprecate `config.active_record.sqlite3.represent_boolean_as_integer`. ([Commit](https://github.com/rails/rails/commit/f59b08119bc0c01a00561d38279b124abc82561b)) * Deprecate passing `migrations_paths` to `connection.assume_migrated_upto_version`. diff --git a/guides/source/autoloading_and_reloading_constants.md b/guides/source/autoloading_and_reloading_constants.md index 212cbfaf43..2556119d33 100644 --- a/guides/source/autoloading_and_reloading_constants.md +++ b/guides/source/autoloading_and_reloading_constants.md @@ -277,7 +277,7 @@ Rails.autoloaders.main Rails.autoloaders.once ``` -The former is the main one. The latter is there mostly for backwards compatibily reasons, in case the application has something in `config.autoload_once_paths` (this is discouraged nowadays). +The former is the main one. The latter is there mostly for backwards compatibility reasons, in case the application has something in `config.autoload_once_paths` (this is discouraged nowadays). You can check if `zeitwerk` mode is enabled with diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md index 6418005921..bee6755b52 100644 --- a/guides/source/form_helpers.md +++ b/guides/source/form_helpers.md @@ -307,7 +307,7 @@ When dealing with RESTful resources, calls to `form_with` can get significantly ## Creating a new article # long-style: form_with(model: @article, url: articles_path) -short-style: +# short-style: form_with(model: @article) ## Editing an existing article diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 05980d1614..39a291ed97 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -78,6 +78,20 @@ Upgrading from Rails 5.2 to Rails 6.0 For more information on changes made to Rails 6.0 please see the [release notes](6_0_release_notes.html). +### Using Webpacker + +[Webpacker](https://github.com/rails/webpacker) +is the default JavaScript compiler for Rails 6. But if you are upgrading the app, it is not activated by default. +If you want to use Webpacker, then include it in your Gemfile and install it: + +```ruby +gem "webpacker" +``` + +```sh +bin/rails webpacker:install +``` + ### Force SSL The `force_ssl` method on controllers has been deprecated and will be removed in |