I started using Rails recently, and I see it’s very easy for URLs that
have up to 3 levels:
But what do you do when you need more than 3?
For example, my current project should have an “admin” interface.
Admin has several sub-interfaces, for example a “users” interface. And
the admin/users interface has several actions, e.g. “add”, for each
Ideally, I’d like to be able to have URLs such as:
But this doesn’t seem to work very well with the Rails scheme and
supporting methods, for example “link_to” assuming :action in this
case is “users”, :id is “add”, and 1, well, doesn’t exist
(of course it’s possible to have the “admin” namespace inferred from a
session, but I’d like a more RESTful approach)
Would appereciate any tips of good ways to do this.