Class: FilesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/files_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
# File 'app/controllers/files_controller.rb', line 2

def show
  send_file Rails.root.join("files/#{params[:path]}")
end