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 /
On Jul 25, 11:23 pm, nini
<nananan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m having some trouble figuring out how to add apathprefixto
_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 staticprefixof /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.
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---