Max Williams wrote: > Hi Bill - thanks. That had occurred to me too, but I was hoping to not > have to go through and individually catch every possible route and > individually redirect each one. The problem with this as well is that > it lets people carry on using the staging urls, silently sending them > through to the right action. > > What i did in the mean time, and i might stick with this, is just catch > missing route exceptions in application_controller and, if they start > with "staging/" just redirect users to the home page with a flash > message. That way at least they get redirected to the proper home page > url, from which they can start building up a more appropriate browsing > history again.
Simple: map.connect 'staging/*rest_of_path' to some staging action In your staging action, have some logic that sets the flash and redirects to rest_of_path. > thanks for your help, max Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- 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.

