In a recent interview with Full Stack Radio Lord and Saviour DHH explains how he organizes Rails controllers in the latest version of Basecamp. From the transcript of his holy words you can learn few simple but useful patterns with their own sets of filters. Furthermore, you will understand what to do with controllers when they have a very specific scope, too much logic or too many mixed concerns. This will lead you to a lot of good side effects in your code and you will never regret the state of your controllers anymore. Check the full article at Jerome’s Adventures in Software blog.
Tags: controllers