friends,
am using send_file function
controller
def download
@event = Event.find(:first, :conditions => ['id = ?',params[:id]])
[EMAIL PROTECTED]@event.file
@path=params[:file_path]
send_file("[EMAIL PROTECTED]",:type => 'all')
end
view file
<% [EMAIL PROTECTED] %>
<a
href="/event/download?id=<[EMAIL PROTECTED]>&file_path=<%=temp_path%>">Download
</a>
I got this error...
Cannot read file event11991.gif
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---