removed excess commented code

This commit is contained in:
Ken Johnson
2013-06-02 22:42:50 -04:00
parent e97afb9bb4
commit 86695e9e07
@@ -5,9 +5,7 @@ class BenefitFormsController < ApplicationController
def download def download
begin begin
#file = params[:type].constantize.new(params[:name])
file = Rails.root.join('public', 'docs', params[:name]) file = Rails.root.join('public', 'docs', params[:name])
#render :text => File.read(file)
send_file file, :disposition => 'attachment' send_file file, :disposition => 'attachment'
rescue rescue
redirect_to user_benefit_forms_path(:user_id => current_user.user_id) redirect_to user_benefit_forms_path(:user_id => current_user.user_id)