Adding a global path prefix in routes

I'm having some trouble figuring out how to add a path prefix to _all_
paths in a site. I see the option to use :path_prefix when using
resources, but this isn't exactly what I want. I would simply like to
add a static prefix of /events/foo/ to all paths, including the root
url (for now, until I create a proper events controller). I attempted
to do this using map.root but it looks as though this is not the
correct place to do it. I am rather confused at this point, and would
appreciate any suggestions on the best and easiest way to go about
doing this.


if u are using mongrel, you can add the global prefix like this:
mongrel_rails start --prefix /myapp
the Path following --prefix must begin with /