Friday, August 29, 2025

New Feature in Ruby on Rails 8

 

What’s New in Ruby on Rails 8?

Ruby on Rails has always been about developer happiness and productivity. With the release of Rails 8, the framework takes another giant leap forward, making it easier than ever to build, deploy, and scale modern web applications.

In this post, we’ll explore the most exciting new features in Rails 8 and why it matters for developers and businesses.


🌟 1. Built-in Deployment with Kamal (No PaaS Needed)

Traditionally, deploying Rails apps required third-party services like Heroku or custom DevOps pipelines. Rails 8 changes this with Kamal (formerly “MRSK”), a first-class deployment tool included in Rails.

  • πŸš€ Deploy Rails apps to any cloud or VPS (AWS, GCP, DigitalOcean, etc.).

  • 🐳 Uses Docker under the hood for consistent environments.

  • πŸ”„ Rollbacks and zero-downtime deploys out-of-the-box.

πŸ‘‰ This means you can go from development to production without needing a PaaS provider.


🌟 2. Propshaft: The Next-Gen Asset Pipeline

Rails 8 introduces Propshaft, a modern replacement for Sprockets.

  • Simpler, faster, and more reliable.

  • Designed for modern JS & CSS tooling (ESBuild, Vite, Tailwind).

  • No more config-heavy asset management headaches.

πŸ‘‰ With Propshaft, assets are leaner and the pipeline plays nicely with today’s frontend workflows.


🌟 3. Solid Queue: Built-in Background Jobs

Rails has had Active Job for years, but you still needed a backend like Sidekiq or Resque. Rails 8 introduces Solid Queue — a native, database-backed job queue system.

  • πŸ“¦ No Redis required — works with just your database.

  • ✅ Great for small to medium apps that don’t need a dedicated queue.

  • πŸ”„ Still works with external job processors if you want.

πŸ‘‰ Background processing is now easier to set up and manage in any Rails app.


🌟 4. Solid Cache: Smarter Caching with Active Record

Caching has been supercharged in Rails 8 with Solid Cache:

  • Stores cache entries directly in the database.

  • Works well with horizontal scaling (multiple servers).

  • Provides visibility and management through ActiveRecord.

πŸ‘‰ Caching is now simpler and more reliable without needing extra infrastructure.


🌟 5. Rails Defaults 8.0

Every major release updates Rails defaults to modern best practices. In Rails 8, new apps come pre-configured with:

  • Latest security defaults.

  • Zeitwerk mode as the standard.

  • Propshaft instead of Sprockets.

  • Optimized configs for production-ready apps.

πŸ‘‰ Less time tweaking configs, more time building features.


🌟 6. General Improvements & Enhancements

  • Action Mailer improvements → better async delivery.

  • Stronger ActiveRecord performance optimizations.

  • Better support for Hotwire & Turbo out of the box.

  • Minor DX (developer experience) improvements across generators, configs, and logs.


🎯 Why Rails 8 Matters

Rails 8 isn’t just an upgrade — it’s a statement:

  • Developers get full-stack power without extra tools.

  • Small teams can ship production apps without DevOps complexity.

  • Rails remains one of the fastest ways to build modern web apps.

With Kamal, Propshaft, Solid Queue, and Solid Cache, Rails 8 gives developers the full power of a modern framework + deployment + infrastructure in one package.


✅ Final Thoughts

Rails 8 is all about simplicity, productivity, and independence. It removes external dependencies, makes deployment first-class, and improves the developer experience.

If you’re starting a new project, Rails 8.0.2.1 (latest stable) is the version you should be using. And if you’re on Rails 7, now’s the perfect time to plan an upgrade.

πŸ’‘ In short: Rails 8 makes it easier than ever to go from idea → production with minimal friction.

No comments:

Post a Comment

FastAPI: The Modern Python Web Framework

  Introduction to FastAPI: The Modern Python Web Framework The world of web frameworks has always been competitive — from Django and Flask ...