Topic: refactoring long methods
I have an accounting application with a DocumentsController (and almost everything in it). In accounting there are many various things you need to do with the present documents, different sorts, different listings, different calculations, and they don't really fit into the REST scheme, as they are all index-like. So my question is, what is the best way to refactor these methods? Should I create a new controller for all of them, or should each method get a new controller with only index action implemented, or should they just stay in the DocumentsController?