With the beta release of Ruby on Rails 7.1, the Ruby-based web application framework now will produce all the Dockerfiles needed to deploy an application.
Developers can access Rails 7.1 beta 1 from GitHub. Also in Rails 7.1:
- Built-in support is offered for the Trilogy MySQL database adapter.
- Capabilities are featured for building an authentication system, to complement
has_secure_password. For starters,
normalizesdeclares an attribute normalization, to normalize attributes before saving to a database. Then,
authenticate_byprotects againt common timing attacks when a user is authenticated in a controller. Also,
generates_token_forcan be used to implement features such as password reset, and
has_secure_passwordcan verify the current password when updating the password.
- Support for asynchronous queries has been expanded for Active Record, making it easier to run multiple, slow queries in parallel.
perform_all_latermethod in Active Job was added to streamline the process of enqueuing large numbers of jobs simultaneously.
- A new configuration method,
config.autoload_lib(ignore:)has been introduced, to enhance the autoload paths of applications.