Exception: Sidewalk::PermanentRedirect
- Defined in:
- lib/sidewalk/redirect.rb
Overview
Use if a resource has permanently moved.
Does not change POST into GET.
Uses a 301 Moved Permanently response.
Instance Attribute Summary
Attributes inherited from Redirect
Instance Method Summary collapse
-
#initialize(url) ⇒ PermanentRedirect
constructor
A new instance of PermanentRedirect.
Methods inherited from HttpError
Constructor Details
#initialize(url) ⇒ PermanentRedirect
Returns a new instance of PermanentRedirect.
32 33 34 |
# File 'lib/sidewalk/redirect.rb', line 32 def initialize url super url, 301, 'Moved Permanently' end |