Class: DynamicErrorPages::ErrorsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- DynamicErrorPages::ErrorsController
- Defined in:
- app/controllers/dynamic_error_pages/errors_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/controllers/dynamic_error_pages/errors_controller.rb', line 3 def show request.format = :html begin render "#{status_code}", :status => status_code, :formats => [:html] rescue ActionView::MissingTemplate => e render "404", :status => 404, :formats => [:html] end end |