How thin can Rails controllers get

Posted by Tim Connor Wed, 11 Apr 2007 16:49:00 GMT

As I get more used to doing my Rails development ReSTfully, the controllers almost start seeming to not be true (full-featured) controllers. They are more just bare-bones thin proxies for the object. This makes me start to wonder if things will (or could) continue to move towards a purer Object Oriented approach in Rail, where the models are more responsible for everything.

For example, I could imagine Resource Feeder being strapped directly onto the models themselves, so they (or their Class, or the results of a finder) could just be called with to_rss or to_atom. Then that gets me thinking, well, could the whole responds_to block actually be handled by the model, itself…. How far down that rabbit hole would one want to go.