Flowdock
method

relative_url_root

Importance_2
v2.0.0 - Show latest stable - 1 note - Class: ActionController::AbstractRequest
relative_url_root() public

Returns the path minus the web server relative installation directory. This can be set with the environment variable RAILS_RELATIVE_URL_ROOT. It can be automatically extracted for Apache setups. If the server is not Apache, this method returns an empty string.

Show source
Register or log in to add new notes.
January 26, 2009 - (>= v2.2.1)
3 thanks

alternative (working with 2.2.X)

ActionController::Base.relative_url_root