Class: Workarea::Storefront::ErrorsController
Instance Method Summary
collapse
#current_layout, #current_user_info, #health_check, #layout_content
#lookup_order, #lookup_order=
#clear_current_order, #completed_order, #completed_order=, #current_checkout, #current_order, #current_order=, #current_shipping, #current_shippings, #logout
Instance Method Details
#internal ⇒ Object
18
19
20
21
22
23
|
# File 'app/controllers/workarea/storefront/errors_controller.rb', line 18
def internal
request.env['rack.exception'] = request.env['action_dispatch.exception']
render_error_page(500)
end
|
#not_found ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
|
# File 'app/controllers/workarea/storefront/errors_controller.rb', line 6
def not_found
redirect_url = Navigation::Redirect.find_destination(
request.env['action_dispatch.original_path']
)
if redirect_url.present?
redirect_to redirect_url, status: :moved_permanently
else
render_error_page(404)
end
end
|
#offline ⇒ Object
25
26
27
28
29
30
|
# File 'app/controllers/workarea/storefront/errors_controller.rb', line 25
def offline
content = Content.for('offline')
@content = ContentViewModel.wrap(content)
render('workarea/storefront/errors/show')
end
|