Friday, September 23, 2022
Improved assert_redirected_to, improved error messages and extra!
Posted by gregmolnar
Hello, that is Greg, bringing you the newest modifications within the Rails framework.
Enable specifying the HTTP standing code in assert_redirected_to
Earlier than this alteration, assert_redirect_to asserted any 3XX response, however with this alteration, it’s potential to say a particular response code, like 301.
Enable passing lessons to dom_id
Permitting dom_id to obtain a Ruby class, as an alternative of an occasion of a category, makes it behave like dom_class, and moreover saving a number of keystrokes, it saves reminiscence too, as a result of Ruby doesn’t must instantiate a whole object with all its callbacks and such.
Enhance error messages on bin/setup
Altering bin/setup to make use of system(…, exception: true) provides extra info when a command fails, and makes debugging simpler.
Enable to cross –power to db:system:change
db:system:change all the time prompts to substantiate the overwriting of database.yml, however now there’s a –power choice to skip the affirmation immediate.
Turbo 7.2.0 was launched
There’s a new launch for Turbo, which can be accessible by way of turbo-rails 1.3.0. You possibly can learn the listing of modifications on the hyperlink above.
We had 24 contributors to Rails this week! If you wish to be a part of that, checkout the points listing!
Till subsequent time!
Subscribe to get these updates mailed to you.