Hi Max, On Mon, Jun 28, 2010 at 7:18 AM, Max Williams <[email protected]> wrote: > Bill Walton wrote: > >> >> Easily, with named routes. >> > > Thanks Bill - would you mind explaining your easy named routes solution? > :)
Without knowing more about your Rails version and existing routes it's a bit tough to give you 'the' solution, but as a starting pointI'd try 'simply' installing some new default routes. map.connect '/staging/:controller/:action' map.connect '/staging/:controller/:action/:id' map.connect '/staging/:controller/:action/:id.:format' At the other end of the tedium spectrum, you could put a named route with /staging added to the beginning of the url in place for each of your existing routes. Run 'rake routes' for a list. Sorry I don't have more time today. It's Monday, for sure ;-). There are good online resources for routing. I'd recommend starting with http://guides.rubyonrails.org/routing.html HTH, Bill -- 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.

