Extracting a tidy PORO from a messy Active Record model
In 2006 Jamis Buck wrote a famous post called Skinny Controller, Fat Model. In it Jamis observed that Rails developers often put too much logic in controllers, making the code harder to understand and to test than it needs to be.“Skinny controllers, fat models” became a piece of accepted wisdom in the Rails community. It was a step forward in the overall state of affairs, but a problem remained: moving code out of controllers and into models often resulted in fat models.
Extracting a tidy PORO from a messy Active Record model #ruby #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper