Class: ExceptionTrack::LogsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/exception_track/logs_controller.rb

Instance Method Summary collapse

Instance Method Details

#allObject

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

#indexObject

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

#showObject

GET /exception_logs/1



14
# File 'app/controllers/exception_track/logs_controller.rb', line 14

def show; end