Exception: Sidewalk::PermanentRedirect
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)
-
- (PermanentRedirect) initialize(url)
constructor
A new instance of PermanentRedirect.
Methods inherited from HttpError
Constructor Details
- (PermanentRedirect) initialize(url)
A new instance of PermanentRedirect
32 33 34 |
# File 'lib/sidewalk/redirect.rb', line 32 def initialize url super url, 301, 'Moved Permanently' end |