A Beginner’s Guide to Ruby on Rails
Ruby on Rails (also just called Rails) is a vital part of software development in today’s world. It is a server-side framework written in…
Rails content on the Revelry Blog: Navigate our lab notes by using the tag system.
Ruby on Rails (also just called Rails) is a vital part of software development in today’s world. It is a server-side framework written in…
Ruby on Rails runs on Ruby, which is an open source language that has been around since the 1990s. What is Ruby? One of…
Any software developer who deals with MVC frameworks has most likely come across the mantra “Fat Model, Skinny Controller”. This is not a good philosophy. It is a bad idea to have a fat model. In fact, it is a bad idea to have a fat anything. Instead, you should strive for Skinny Everything.
Concerns are modules you can use to extract code out of models and controllers. This is useful for various reasons. An obvious one is that this makes things skinnier, which we’ve already established is good. Another is that you can use these concerns to mix into other models and controllers
While it is definitely good to have a slim controller for sake of code reusability, readability, and testing, it is also good to have a skinny model (for the exact same reasons). In fact, its just good to have a skinny everything.