Execute `rails new myapp -S` and then upgrade the app by using the `app:update` task, `bin/rails c` results in `NoMethodError`. ``` $ bin/rails app:update $ bin/rails c Traceback (most recent call last): 44: from bin/rails:4:in `<main>' (snip) 1: from /Users/tanimichi.tsukuru/ghq/github.com/moneyforward/moneyplus/config/initializers/assets.rb:4:in `<top (required)>' /Users/tanimichi.tsukuru/ghq/github.com/moneyforward/moneyplus/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/railtie/configuration.rb:97:in `method_missing': undefined method `assets' for #<Rails::Application::Configuration:0x00007fcb8d3697e0> (NoMethodError) Did you mean? asset_host ```
1.9 KiB
-
Don't generate assets' initializer in
app:update
task if sprockets is skippedTsukuru Tanimichi
-
Make the master.key file read-only for the owner upon generation on POSIX-compliant systems.
Previously:
$ ls -l config/master.key -rw-r--r-- 1 owner group 32 Jan 1 00:00 master.key
Now:
$ ls -l config/master.key -rw------- 1 owner group 32 Jan 1 00:00 master.key
Fixes #32604.
Jose Luis Duran
-
Deprecate support for using the
HOST
environment to specify the server IP.The
BINDING
environment should be used instead.Fixes #29516.
Yuji Yaginuma
-
Deprecate passing Rack server name as a regular argument to
rails server
.Previously:
$ bin/rails server thin
There wasn't an explicit option for the Rack server to use, now we have the
--using
option with the-u
short switch.Now:
$ bin/rails server -u thin
This change also improves the error message if a missing or mistyped rack server is given.
Genadi Samokovarov
-
Add "rails routes --expanded" option to output routes in expanded mode like "psql --expanded". Result looks like:
$ rails routes --expanded --[ Route 1 ]------------------------------------------------------------ Prefix | high_scores Verb | GET URI | /high_scores(.:format) Controller#Action | high_scores#index --[ Route 2 ]------------------------------------------------------------ Prefix | new_high_score Verb | GET URI | /high_scores/new(.:format) Controller#Action | high_scores#new
Benoit Tigeot
-
Rails 6 requires Ruby 2.4.1 or newer.
Jeremy Daer
Please check 5-2-stable for previous changes.