Displaying 1 result from an estimated 1 matches for "download_filename".
2007 Feb 22
0
error with send_file.. please help me...
...logger.info "Sending file #{path}" unless logger.nil?
File.open(path, ''rb'') { |file| render :text => file.read }
end
end
And add this line in my page
<%= link_to ''file download'', :action => ''send_file(download_filename)''
%>
where download_filename is a veriable <%=
download_filename=''/images/myfile.xls''%>
when I click the link, it display error message as
"No action responded to send_file(download_filename)"
i guess syntax error in my code, while send_file().
plz hel...