Rails Service Objects: A Comprehensive Guide

2018-05-07 20 min read Uncategorized
This post was written by Amin Shah Gilani, Ruby Developer for Toptal. Ruby on Rails ships with everything you need to prototype your application quickly, but when your codebase starts growing, you’ll run into scenarios where the conventional Fat Model, Skinny Controller mantra breaks. When your business logic can’t fit into either a model or a controller, that’s when service objects come in and let us separate every business action into its own Ruby object. Continue reading