Rails refactoring techniques from Fearless Refactoring: Rails Controllers
@ivar with varrender "products/form", {product: product}render "products/new", :locals => {product: product}render and redirect calls in your controller's actions.render and redirect call you found with descriptive name that shows your intention.ApplicationControllerexcept: [:foo_action]routes.rbroutes.rbProductsRepository inside the same file as the controllerProduct.find/all/new/save/create methods in the controllerApplicationController) where you instantiate the repo.app/repos/SimpleDelegator.SimpleDelegator.No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.