Jump to ratings and reviews
Rate this book

Exploding Rails

Rate this book
Learn how to improve a Rails application's structure by using the rom-rb and dry-rb set of gems. Move away from messy models and move towards crisp, clean code.

(This book is currently in a "beta" state, with some medium-sized changes coming to its code in the near future. Hence the "95% complete" part. I'd still love for people to read it in the meantime though!)

The default structure of Rails applications hasn't changed all that much in over a decade. And with good reason: this directory structure makes it easy to jump into building a Rails application.

While I agree that this way is still extremely simple and great for getting started within a Rails application, I do not agree that this is the best way to organise a Rails application in 2018 with long-term maintenance in mind. A decade of Ruby development has produced some great alternatives to Rails' MVC directory structure that are definitely worthwhile to consider.

One alternative can be found in the combination of the rom-rb and dry-rb set of gems.

The `rom-rb` gems allow us to interact with a database with just as much ease as Active Record, but with the added benefit that persistence and business logic aren't bundled together in the same class.

The `dry-rb` gems allow for splitting the validation logic away from the business logic's class (dry-validation) and also provides a sensible alternative to the community-wide pattern of service objects (dry-transaction).

This guide covers how you would go about integrating these gems into a brand new Rails application, building features in an iterative fashion.

ebook

Published January 1, 2018

1 person is currently reading
8 people want to read

About the author

Ryan Bigg

11 books13 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (9%)
4 stars
8 (72%)
3 stars
1 (9%)
2 stars
0 (0%)
1 star
1 (9%)
Displaying 1 of 1 review
Profile Image for Ietrio.
6,936 reviews24 followers
November 30, 2019
Quite an unfortunate book title. But they say computer people have trouble with the Social aspects of the life.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.