Class: Locomotive::ErrorsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Locomotive::ErrorsController
- Defined in:
- app/controllers/locomotive/errors_controller.rb
Instance Method Summary collapse
Instance Method Details
#error_404 ⇒ Object
6 7 8 |
# File 'app/controllers/locomotive/errors_controller.rb', line 6 def error_404 render '404', status: :not_found end |
#error_500 ⇒ Object
10 11 12 |
# File 'app/controllers/locomotive/errors_controller.rb', line 10 def error_500 render '500', status: :internal_server_error end |
#no_site ⇒ Object
14 15 16 17 18 |
# File 'app/controllers/locomotive/errors_controller.rb', line 14 def no_site respond_to do |format| format.html { render 'no_site', status: :not_found } end end |