Add pdf resources to the resources page

This commit is contained in:
rebuilt 2022-11-22 14:44:29 -08:00
parent f2089c2eeb
commit aff7b04ed4
25 changed files with 63 additions and 9 deletions

View file

@ -1,5 +1,7 @@
class ResourceController < ApplicationController
def index
def index; end
def download_pdf
send_file "#{Rails.root}/public/docs/resources/#{params[:path]}.pdf", type: 'application/pdf', x_sendfile: true
end
end