Flowdock
method

relative_url_root

Importance_2
v1.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 method returns nil unless the web server is apache.

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