mirror of
https://github.com/edcommonwealth/ecp.org.git
synced 2026-03-08 23:18:13 -07:00
Fix broken file downloads
This commit is contained in:
parent
a173740ded
commit
f2089c2eeb
6 changed files with 9 additions and 3 deletions
|
|
@ -2,4 +2,9 @@ class ResearchController < ApplicationController
|
|||
def index
|
||||
|
||||
end
|
||||
|
||||
|
||||
def download_pdf
|
||||
send_file "#{Rails.root}/public/docs/#{params[:path]}.pdf", type: "application/pdf", x_sendfile: true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue