Further, with the replacement of TurboLinks and Rails UJS by the Stimulus JS framework and Turbo tool to reduce the need for custom JS, Rails now has a complete in-the-box front-end setup for writing Rails applications. There is no need to deal with Node dependencies in
-css[bundler] enable starting of a new application or changing one that begins with import maps to use Esbuild, Rollup.js, Webpack, and other technologies.
Instructions on getting started with Rails can be found at guides.rubyonrails.org. Other additions and changes in Rails 7.0:
- Encrypted attributes have been added to Active Record, enabling an application to offer at-work encryption in addition to traditional at-rest and in-transit coverage. This provides additional security.
- Asynchronous query loading for running queries in parallel.
- The Spring application preloader for Rails is no longer on by default, with faster computers having made it less relevant.
ActionController::Live#send_streammakes it easy to stream files being generated on the fly in controller actions.
- Active Storage now uses the more secure and faster
libvipsas its default variant processor.
- Parallelized testing now compares a CPU core count to a test count and scales parallelization accordingly.