Module: Hanami::Action::Redirect
- Defined in:
 - gems/gems/hanami-controller-1.3.2/lib/hanami/action/redirect.rb,
gems/gems/hanami-controller-1.3.3/lib/hanami/action/redirect.rb 
Overview
HTTP redirect API
Instance Method Summary collapse
- 
  
    
      #redirect_to(url, status: 302)  ⇒ Object 
    
    
  
  
  
  
  private
  
  
  
  
    
Redirect to the given URL and halt the request.
 
Instance Method Details
#redirect_to(url, status: 302) ⇒ Object (private)
Redirect to the given URL and halt the request
Source: | on GitHub
        def redirect_to(url, status: 302) headers[LOCATION] = ::String.new(url) halt(status) end  |