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 <[email protected]> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > 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 [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.

