|
|
|
|
|
by dhh
5855 days ago
|
|
I'd be curious what hand-crafted URLs you feel aren't possible with the new Rails 3 router. We've gone far to allow all kinds of hand-crafted urls. For example, here's an example: get 'something/fun/:id', :to => "controller#action" You can map just about anything that falls outside of the conventions with a variety of that. |
|
The over-engineer in me likes the way Rails 3 does it. That way I can pretend that my code is reusable, as the URL is decoupled from the code that eventually implements its handler.
But I suppose there is also something nice about a controller which self-defines the way in which it can be accessed.