friends,
am using send_file function
controller
def download
@event = Event.find(:first, :conditions => [‘id = ?’,params[:id]])
#@[email protected]
@path=params[:file_path]
send_file("#{@path}",:type => ‘all’)
end
view file
<% [email protected] %>
Download
I got this error…
Cannot read file event11991.gif
Thanks.