Relative URL

I’m trying to use a non default webserver with Rails and succesfully
does this by calling the disptacher directly, by setting the environment

My problem is that the relative path is incorrect when I identify myself
as anything else than apache. In request.rb the @@relative_url_root is
only set when the webserver is apache. Is this default wanted behaviour?
Or is there another way of achieving this without settings routes?


numknuf wrote:

You can set relative_url_root in your environment.rb file.

ActionController::AbstractRequest.relative_url_root = “/my_app_root”


– stefan

Thanks, that will solve my problem.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs