Rails 8 introduces a range of exciting updates that streamline development and enhance performance. Here’s a quick overview of the key features to share:
- New Authentication System: Rails 8 now includes an official authentication generator, allowing easier and more consistent user authentication handling out-of-the-box
- Solid Trifecta for Performance: The “Solid Trifecta” offers a new suite of database-backed adapters to replace Redis, RabbitMQ, and other queues. This includes:
- Updated Error Pages: Built-in error pages now have a modern look for easier debugging, and query log tags are enabled by default in development to trace SQL issues
- Propshaft as the Default Asset Pipeline: Propshaft is the new asset pipeline, which aims to be faster and simpler than Sprockets
- HTTP/2 and Deployment Enhancements with Thruster: Thruster is included by default for serving Rails apps with HTTP/2 support, automatic SSL, and enhanced static asset handling, optimizing deployment for Rails on production environments
- Support for Newer Ruby Versions: Rails 8 drops support for Ruby 3.1, requiring Ruby 3.2 or higher, which keeps the framework aligned with modern Ruby enhancements
These improvements make Rails 8 a more robust and efficient framework, great for both developers and end-users.