Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Resources? #4

Open
botanicus opened this Issue · 11 comments

4 participants

@botanicus
Collaborator

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.

@joshbuddy
Owner

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?

@joshbuddy
Owner

Take a look at http://github.com/tred/fancyroutes for inspiration.

@reactormonk

The merb one http://wiki.merbivore.com/howto/router looks quite good to me.

@joshbuddy
Owner

This looks nice! I wonder what sort of names the routes produced have? Can you include this in your docs?

@eddanger

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.

@joshbuddy
Owner

Pull from the latest and let me know if the params match now.

@reactormonk

Uh, right, names. Totally forgot about them. Will be added ;)

@eddanger

no luck, still seems wonky...

@joshbuddy
Owner

Can you provide an example?

@eddanger

Ah, it does work. I was still running 0.6.2. Looks awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.