Sha256: bdf39a36c2a669b0ab5d3efb06aa2d82a27d6ca32a717258acdbfe6da1293b96
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
module ExceptionTrack class LogsController < ActionController::Base layout 'exception-track/application' before_action :set_log, only: [:show, :destroy] # GET /exception_logs def index @logs = Log.order('id desc').page(params[:page]).per(15) end # GET /exception_logs/1 def show end # DELETE /exception_logs/all def all Log.delete_all redirect_to logs_url, notice: 'Logs was successfully destroyed.' end private # Use callbacks to share common setup or constraints between actions. def set_log @log = Log.find(params[:id]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exception-track-0.2.0 | app/controllers/exception_track/logs_controller.rb |