Download problem!

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.

works fine

You do not have read permissions on that file, or the file does not
exist.

Ryan B.
Freelancer