lib/rack/action.rb
def redirect_to(url, options={})
      full_url = absolute_url(url, options)
      response[LOCATION] = full_url
      respond_with 302
      full_url
    end
def redirect_to(url, options={})
      full_url = absolute_url(url, options)
      response[LOCATION] = full_url
      respond_with 302
      full_url
    end
This is a convenience method that forms an absolute URL based on the
 url parameter, which can be a relative or absolute URL, and then
 sets the headers and the body appropriately to do a 302 redirect.

 @see #absolute_url
 @return [String] The absolute url