Additionally, with the replacement of TurboLinks and Rails UJS by the Stimulus JS framework and the Turbo Tool to reduce the need for custom JS, Rails now has a full front-end configuration for writing Rails applications. It is not necessary to manage node dependencies in
-css[bundler] allow the start of a new application or the modification of one that begins by importing maps to be used Esbuild, Rollup.js, Webpack, and other technologies.
Instructions for getting started with Rails are available at guides.rubyonrails.org. Other additions and changes in Rails 7.0:
- Encrypted attributes have been added to Active Record, allowing an application to offer encryption at work in addition to traditional coverage at rest and in transit. This provides additional security.
- Asynchronous query loading to run queries in parallel.
- The Spring for Rails app preloader is no longer enabled by default, as faster computers have made it less relevant.
ActionController::Live#send_streammakes it easy to stream generated files on the fly in controller actions.
- Active storage now uses the safest and fastest
libvipsas its default variant processor.
- Parallelized tests now compare a number of processor cores to a number of tests and scale the parallelization accordingly.
Copyright © 2021 IDG Communications, Inc.