Refactoring in Rails

  When the complexity of our Rails application increases, it becomes difficult to test and add new features. As we know, Rails is built on the principle of convention over configuration. Putting too much logic in the controller¬†will eventually violate the single responsibility principle making future changes to the codebase difficult and error-prone. Refactoring the…