Class: Peephole::LogfilesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Peephole::LogfilesController
- Defined in:
- app/controllers/peephole/logfiles_controller.rb
Instance Method Summary collapse
Instance Method Details
#download ⇒ Object
12 13 14 |
# File 'app/controllers/peephole/logfiles_controller.rb', line 12 def download send_file @logfile.path end |
#show ⇒ Object
7 8 9 10 |
# File 'app/controllers/peephole/logfiles_controller.rb', line 7 def show @page = params[:page].to_i.nonzero? || 1 @loglines, @eof = @logfile.loglines(@page) end |