From the Publisher


What makes this book stand out among other Ruby on Rails learning resources?
This book offers practical solutions to real-world Rails application complexity issues, based on the author's extensive experience with successful projects. It goes beyond basic Rails principles, focusing on maintaining code health as applications grow.
The content covers advanced topics like organizing business logic, designing common features, and leveraging architectural patterns inherent to Rails. It provides concrete solutions to design problems not widely published elsewhere.
The author's deep understanding of Rails' design philosophy allows readers to fully harness the framework's power. The book aims to help developers keep their Rails applications maintainable and approachable, even as they scale and become more complex.
By addressing these challenges, the book fills a gap in the market for intermediate to advanced Rails developers seeking to improve their architectural and design skills.
Key Takeaways:

Editorial Reviews
About the Author
Vladimir Dementyev has been working on web applications for more than 10 years and launched his first Ruby on Rails project back in 2014. Since then, he has been working on a dozen of Rails web applications, used by hundreds of millions of customers, monolithic or component-based, following the Rails way or trying to swim against the current.
He has been an active member of Rails open-source community since 2015, becoming a regular Rails contributor, a RailsConf speaker, and the author of dozens of gems, including AnyCable, TestProf, and Action Policy to name a few. For his work on the Ruby Next project, the author got the Fukuoka Ruby Award for outstanding performance in 2021.
Currently, he’s leading the backend developers’ team at Evil Martians, helping dozens of web projects around the world build better software.
Product details
- Publisher : Packt Publishing (August 30, 2023)
- Language : English
- Paperback : 298 pages
- ISBN-10 : 1801813787
- ISBN-13 : 978-1801813785
- Item Weight : 1.14 pounds
- Dimensions : 0.67 x 7.5 x 9.25 inches
- Best Sellers Rank: #890,326 in Books (See Top 100 in Books)
- #42 inRuby Programming
- #226 inWeb Services
- #1,356 inInternet & Telecommunications
- Customer Reviews:
About the author

Vladimir Dementyev is a principal backend engineer at Evil Martians, a product development consultancy from Earth, focusing on building maintainable web applications and developers’ productivity. During his day job, he helped many businesses to ship high-quality products, including Fountain, Zipline, Playbook, and Coveralls, to name a few.
Vladimir is a creator of popular open-source tools, such as AnyCable and TestProf, and a contributor to many other open-source projects, including Ruby on Rails and Ruby itself. Vladimir plays an active role in the Ruby community through his code contributions and by speaking at conferencing and sharing his passion for coding via articles and blog posts. For his contributions to the Ruby ecosystem, Vladimir has been awarded Fukuoka Ruby Award in 2021 and Ruby Hero Russia Award in 2017.
Customer reviews
- 5 star88%
- 4 star7%
- 3 star3%
- 2 star0%
- 1 star2%
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon
Images in this review
Reviews with images

Formatting of code blocks is screwed
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on December 23, 2024Books are what I ordered
- Reviewed in the United States on September 4, 2023As someone who has been writing Ruby on Rails code for over 15 years, I can honestly say that this book by Vladimir Dementyev is a treasure trove of insights for seasoned developers. This book delves deep into the intricate layers of Rails, offering a sophisticated understanding that goes beyond the basics. Whether it's tackling the nuances of Active Record or discussing complex layered architectures, the book makes you rethink and refine your approach to Rails development. One of my favorite parts was the chapter on authorization models; it provided me with a comprehensive look at something so essential, yet often overlooked. But the book doesn't stop at just offering advice; it also encourages you to experiment and find your own best practices. For those of us dealing with mature, more complex systems, this book is a godsend. It's not just another Rails book; it's an investment in mastering your craft.
- Reviewed in the United States on August 31, 2023I loved this book, and found it very timely given the many questions and opinions I've seen in the community over the past couple years, about how to grow Rails applications beyond what the framework gives you out-of-the-box.
As an overarching concept, Vladimir lays out a compelling vision for an "Extended Rails Way" that first guides us on how to use the baked-in abstractions well, and then helps us imagine how we could extract new abstraction layers that really feel like they could be Rails.
The book helped me see how I could turn design patterns into new, cohesive abstractions that rhyme with Rails, creating more harmonious codebases with reduced cognitive burden.
Vladimir provides clear perspective and helpful recommendations around some of Rails' most contentious features, including callbacks and concerns.
Throughout the book, there's a repeated pattern of showing less-than-ideal examples, and then reasoning our way into one or more improved solutions. I found observing his thinking here to be really informative and helpful.
I was impressed by how comprehensive the book is, covering all the topics you'd expect, like Active Record and Active Storage, plus those you might not expect, like filter objects, notifications, view components, and even configuration and logging.
Long story short, this is now one of two Rails books I'll be recommending that all Rails devs read. - Reviewed in the United States on September 6, 2023This isn't a book for beginning Rails developers, but for those who already know the framework and have worked in with it for awhile, this book is a great resource for leveling up. It covers not only the Rails way, but it also describes how to grow large applications sensibly once the basic Rails abstractions are no longer enough. It gives examples of different patterns and abstractions as well as how to evaluate whether or not they are a good fit for your application. I appreciate this nuanced approach, because every application is different and there are tradeoffs to everything.
The book also covers several Rails antipatterns and discusses common Rails concepts such as thin controller/fat model and where those ideas can lead to problems in large applications. Additionally every chapter ends with thoughtful questions for the reader and exercises to illustrate the points raised in the chapter. Many also include a list of resources for further reading on the topic. To get the most out of the book you'll want to clone the associated repository and work through the questions and exercises.
This is an incredible resource for those looking to take their Rails development practices to the next level, with great advice on dealing with the complexities that come with larger applications. - Reviewed in the United States on October 11, 2023This is a great read for intermediate Ruby on Rails developers and software engineers in general. The book provides clear and easy-to-follow examples. Many of the examples only require a slightly higher level of understanding beyond beginner-level Rails knowledge, making it accessible to a wide audience.
One aspect I appreciate is that the design principles taught in this book can be applied to other languages and frameworks. For instance, Chapter 9 discusses various authorization models, which I found very helpful. Many other software engineering books either skim over how to implement authorization or provide overly simplistic examples.
If you're a language-agnostic programmer, like me, who knows Ruby on Rails, you'll find this book to be incredibly valuable. - Reviewed in the United States on September 12, 2023This book is mostly geared towards intermediate to senior-level Rails engineers, but more junior-level folks can still benefit from the information contained therein.
The first several chapters are an overview of how Rails works which are essential for any engineer who wants to get the most out of Rails. The rest of the book are a collection of different design patterns that someone could employ to make an existing application easy to reason about.
I wouldn't recommend starting with these advanced design patterns or else you run the risk of over-engineering and introducing too much complexity unnecessarily, but if you've got an existing app that's starting to look a little crufty, these patterns can help you to abstract away the cruft in more convention-y way.
The content of the book is great. It's easy to read and follow. A bit dry at times (but what technical resource isn't dry?).
Top reviews from other countries
- Ljubomir M.Reviewed in Germany on October 15, 2023
5.0 out of 5 starsA solid Rails book
I just love reading an up to date rails book with valuable insight from a seasoned dev. I’ve really enjoyed this one. Layered design should be the new rails way.