Slim down hefty Rails controllers AND models, using domain model events (video and guide)
20-Apr-2017 3515
If you've done much Rails coding, you've probably heard the guideline: “skinny controller, fat model”. But achieving this can be easier said than done. Especially when your controllers are bloated with HTTP-centric responsibilities, such as websocket notifications, that don't really seem to belong in your domain model objects either.
Slim down hefty Rails controllers AND models, using domain model events (video and guide) #ruby #rubydeveloper #rubyonrails #hefty #Rails #controllers #models, #using #domain #model #events #(video #guide) #guide) https://www.rubyonrails.ba/link/slim-down-hefty-rails-controllers-and-models-using-domain-model-events-video-and-guide