You may find reading this helpful.
http://darynholmes.wordpress.com/2008/03/15/beginners-tutorial-routing-in-rails-20-with-rest-part-1-of-n/
On Tue, Jan 5, 2010 at 12:25 PM, Johnny Shi
<johnny.t.shi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I am doing this app, account - project - category orientated. Category
> can belong to an account (url: account.example.com/categories) or
> specific to a project (url: account.example.com/projects/1/
> categories), my question is:
> 1. is this url structure the proper way to do it?
> 2. inside the category controller, to determine whether the category
> belong to an account or a project, i use "if
param[''project_id'']",
> again is this the proper way to do it?
>
> Appreciate any help,
>
> Regards,
>
> johnny
>
> --
> 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>
>
--
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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.