removed excess commented code
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user