A Beginner's Guide to Service Objects for Ruby on Rails
04-Dec-2018 2305
Rails follows a Model-View-Controller pattern. This raises questions around where programming logic should go once a Ruby on Rails application reaches a certain size. Generally, the principles are:Forget fat Models (don’t allow them to become bloated)Keep Views dumb (so don’t put complex logic there)And Controllers skinny (so don’t put too much there)So where should you put anything that’s more than a simple query or action?.
A Beginner's Guide to Service Objects for Ruby on Rails #ruby #rubydeveloper #rubyonrails #Beginner's #Guide #Service #Objects #Rails #guide #service https://rubyonrails.ba/link/a-beginner-s-guide-to-service-objects-for-ruby-on-rails