public Method

AbstractRequest.path

Returns the interpreted path to requested resource after all the installation directory of this application was taken into account

Source Code

# File action_controller/request.rb, line 253
def path
  path = (uri = request_uri) ? uri.split('?').first.to_s : ''

  # Cut off the path to the installation directory if given
  path.sub!(%r/^#{relative_url_root}/, '')
  path || ''      
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.