Class: ExceptionTrack::LogsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ExceptionTrack::LogsController
- Defined in:
- app/controllers/exception_track/logs_controller.rb
Instance Method Summary collapse
-
#all ⇒ Object
DELETE /exception_logs/all.
-
#index ⇒ Object
GET /exception_logs.
-
#show ⇒ Object
GET /exception_logs/1.
Instance Method Details
#all ⇒ Object
DELETE /exception_logs/all
17 18 19 20 |
# File 'app/controllers/exception_track/logs_controller.rb', line 17 def all Log.delete_all redirect_to logs_url, notice: "Logs was successfully destroyed." end |
#index ⇒ Object
GET /exception_logs
9 10 11 |
# File 'app/controllers/exception_track/logs_controller.rb', line 9 def index @logs = Log.order("id desc").page(params[:page]).per(15) end |
#show ⇒ Object
GET /exception_logs/1
14 |
# File 'app/controllers/exception_track/logs_controller.rb', line 14 def show; end |