Class: Renalware::System::ErrorsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Renalware::System::ErrorsController
- Defined in:
- app/controllers/renalware/system/errors_controller.rb
Instance Method Summary collapse
Instance Method Details
#generate_test_internal_server_error ⇒ Object
16 17 18 19 20 21 |
# File 'app/controllers/renalware/system/errors_controller.rb', line 16 def generate_test_internal_server_error raise "This is an intentionally raised error - please ignore it. " \ "It is used only to test system integration. " \ "The rest of this messages is padding to test that the title is truncated to 256 " \ "characters#{'.' * 100}" end |
#internal_server_error ⇒ Object
12 13 14 |
# File 'app/controllers/renalware/system/errors_controller.rb', line 12 def internal_server_error render status: :internal_server_error, formats: [:html] end |
#not_found ⇒ Object
8 9 10 |
# File 'app/controllers/renalware/system/errors_controller.rb', line 8 def not_found render status: :not_found, formats: [:html] end |