Class: Renalware::System::ErrorsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/renalware/system/errors_controller.rb

Instance Method Summary collapse

Instance Method Details

#generate_test_internal_server_errorObject



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_errorObject



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_foundObject



8
9
10
# File 'app/controllers/renalware/system/errors_controller.rb', line 8

def not_found
  render status: :not_found, formats: [:html]
end