I'm sending an email with a link to a downloadable brochure.
Here's my download action
def download
@thing = Thing.find_using_slug(params[:id])
send_file @thing.brochure.path,
:type => 'application/pdf',
:filename => "#{@thing.name}_brochure.pdf"
end
When the user clicks the link from the email it starts the download and then they are left with a blank screen. I'd like to render a landing page and still send the file.