[Mongrel] rails url prefix (was Re: comparison... why mongrel?)

Grant Hollingworth grant at antiflux.org
Tue Apr 10 16:14:43 EDT 2007

* "Michael P. Soulier" <msoulier at digitaltorque.ca> [2007-04-10 12:55]:
>As a side-question, does anyone know how to make Rails compose URLs properly
>without using --prefix in mongrel?

Add this to environment.rb:
    ActionController::AbstractRequest.relative_url_root = "/blah"

More information about the Mongrel-users mailing list