News for hackers. Stuff that matters.
Re:Rethinking Rails 3 Controllers and Routes - PeepCode Blog by blaix on Wednesday June 02, 2010 @06:45PM (#1399734)
I think it is advocating something concrete: Drop the separate routing layer. Then it gives two concrete examples of how to handle urls: Sinatra-style and HTTP-style methods in the controller. I think the biggest problem in the article is its use of an ugly url in the examples.

I actually like the HTTP-style method approach. You mention pushback to prevent people from creating mega-controllers, and I think this takes it even a step further. It really ties the controller to the resource. As mentioned in the article, this is already how the methods are called in the tests.

There are no comments on this comment yet.