class ActionDispatch::Request
def fullpath
# get "/articles?page=2"
request.fullpath # => "/articles"
# get "/articles"
Returns the +String+ full path including params of the last URL requested.
def fullpath @fullpath ||= super end
def fullpath @fullpath ||= super end