A Refactoring Guide for Ruby on Rails
Too Long; Didn't Read
In this article, I’m gonna walk you through some steps to make your Ruby on Rails code more beautiful and readable. You should understand what a basic MVC is before going forward, take a look at this article. Read and apply each of the steps in order, I will start with some messy code in the View and split it through the whole MVC until I get to the Model. This is the heart of our MVC, where we should put the most complex code logic and transfer (almost) everything to our controllers.