holman/feedback — Issue #94: Less trivial routing
Author: hydrozen
Created: 2011-11-28 23:56:40+00:00
State: open

Hey Zach,

I'm working on an app and I'm struggling to wrap my head around how to craft the routes in a clean/rails/restful way. I was wondering if an url such as https://github.com/hydrozen/dotfiles/admin/options on github is achieved without having to rely on match and if so then what would the routes/resources definition might look like for such a scenario when you want certain admin screens available for a given resource.

I want to do something very similar but with a Group resource. Here are some example paths :

* /groups/1-some-awesome-group/admin/
* /groups/1-some-awesome-group/admin/settings
* /groups/1-some-awesome-group/admin/options

Thanks,

- Pat