From: Mateusz Tybura Date: 2008-03-29T15:26:36+09:00 Subject: File download in Rails ------=_Part_10854_32369768.1206771994125 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I've got problem with allow user to download file. This is sending method: class DownloadController < ApplicationController def send @headers["Content-Type"] = ("./public/files/"+params[:path]+"/"+params[:name]).content_type send_file(("./public/files/"+params[:path]+"/"+params[:name]), :type => param[:name].content_type) end end In view i have: <%= link_to st, :controller => "download", :action => "send", :path => s, :name => st %> I get error: Status: 500 Internal Server Error Content-Type: text/html 500 Internal Server Error -- My own blog (in polish) : wujciol.yoyo.pl ------=_Part_10854_32369768.1206771994125--