Hello -

I'm trying to remain RESTful in a new application that I'm building, but
I'm not sure how to get the routes that I want. I'm trying to avoid
having resource names like "posts" and "comments" cluttering things up.

For example, for a resource that I designate:

GET example.com -> index
GET example.com/1 -> show, id=1
GET example.com/1/edit -> edit, id=1
GET example.com/new -> new

Etc. In addition, I'd like to nest another resource beneath that
(there's a has_many relationship), so that I can get routes like:

example.com/1/3
example.com/1/3/edit

Etc. I'm planning on using friendly_id to change the IDs and make the
URLs more memorable, but before I introduce that I just want to get
those resource names out of there. I want to remain as restful as
possible, but I'm not sure how to get this using map.resources.

Ideas?

Thanks,
Chris
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to