I'm not sure if it is good idea and how it should be implemented (core? plugin?), but it's definitely worthy to start a discussion about resources, nested resources etc. It might be better to put it into plugin probably, but I think there should be something for it.
Well, an awesome mapper is a separate (but very interesting) project to me. I have no objection to one getting built and tossed into util though. What would an awesome mapping DSL look like?
Take a look at http://github.com/tred/fancyroutes for inspiration.
The merb one http://wiki.merbivore.com/howto/router looks quite good to me.
I'm giving it a try http://github.com/Tass/CRUDtree
This looks nice! I wonder what sort of names the routes produced have? Can you include this in your docs?
My take on resources and nested resources with a fancy pants DSL: http://gist.github.com/273056
rackup this file and go to /posts/42/comments in your browser. One problem I am having is that the params don't match the route.
Pull from the latest and let me know if the params match now.
Uh, right, names. Totally forgot about them. Will be added ;)
no luck, still seems wonky...
Can you provide an example?
Ah, it does work. I was still running 0.6.2. Looks awesome.