Hi, did you consider using permalinks? I use them to hide users account Id
and for SEO purposes.
Sam
On Tue, Dec 8, 2009 at 11:47 AM, tispratik
<tispratik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi,
>
> How do we add default path to each route according to the account?
>
> ex:) My Webapp resides at www.example.com
> If I have 1 account named rorTalk and another named rubyTalk then both
> accounts should get their own sub url.
>
> eg)
> www.example.com/rorTalk/
> www.example.com/railsTalk/
>
> Then anything in the system should be accesses through these default
> routes.
>
> eg)
> www.example.com/rorTalk/Blogs/1/edit
> www.example.com/rubyTalk/Blogs/2/edit
>
> etc....
>
> How do i go about it?
> 1. Concept (How it Works ?)
> 2. Design (routes.rb, controllers etc)
>
>
> Thanks and Regards,
> Pratik
>
> --
>
> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.