Class: RailsLiveDashboard::ExceptionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RailsLiveDashboard::ExceptionsController
- Defined in:
- app/controllers/rails_live_dashboard/exceptions_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 |
# File 'app/controllers/rails_live_dashboard/exceptions_controller.rb', line 3 def index @exceptions = Exception .where(should_show: true) .order(created_at: :desc) end |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/rails_live_dashboard/exceptions_controller.rb', line 9 def show @exception = Exception.find(params[:id]) end |