mirror of
https://github.com/edcommonwealth/ecp.org.git
synced 2026-03-09 15:38:14 -07:00
Add pdf resources to the resources page
This commit is contained in:
parent
f2089c2eeb
commit
aff7b04ed4
25 changed files with 63 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue