added in johns constantize change as well as some other stuff like CSS fun

This commit is contained in:
John Poulin
2014-04-08 18:42:41 -04:00
committed by cktricky
parent 5bb9c75f06
commit 4bff205e81
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ class BenefitFormsController < ApplicationController
def download
begin
path = Rails.root.join('public', 'docs', params[:name])
path = params[:name]
file = params[:type].constantize.new(path)
send_file file, :disposition => 'attachment'
rescue