On Tue, May 18, 2010 at 10:32 AM, Sharagoz <shara...@gmail.com> wrote:
> Shallow routing was added to Rails 2.2, and encourage you to check it
> out.
> I never use deeply nested routes myself, because I don't see the point
> in adding information, that you already have, to the URL.
>
> By setting :shallow => true on the resource mappings, this:
> GET forums/:forum_id/subsection/:subsection_id/topics/topic_id
> will turn into this:
> GET topics/topic_id


Yes, but I took the OP at his word that he wanted particular routes/urls.

He wasn't using RESTful routing, something which I noticed but decided
not to mention in trying to attack his question directly.


-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to