Routes

Hi, I have a listings website and i want to be able to offer the
functionality of the site to partners under their branding. So basically
have a signup page taking a logo and name etc and some location details.
Then what I want to happen is to allow these partners to access their
partner section via a url like
www.site.com/partner1

I have 2 publically accessable controllers, user and search. I would
like the urls for these to look somthing like

www.site.com/partner1/user/view_listing/54356

But I don’t know where to start.
Will i have to re-write all my redirect_to’s and link_to’s ?
How do i set up my routes file to allow for these new urls but also stil
handle the old www.site.com/user/view_listing/54356 style of frog.

Like i said i’m stumped, so any and all help would be very much
appreciated.
thanks
regards
c

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs