Luis Lavena wrote: > On Wed, Sep 22, 2010 at 11:22 AM, Amit Tomar <li...@ruby-forum.com> > wrote: >> >> soory but how do i setup s virtual server configuration?? > > Read apache documentation. > >> and i have to install that plugin?? > > No, in your controller action set the headers, *do not* install the > plugin. > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exupé²¹
luis i change my code as you said filename = "#...@stream.location}" response.headers['Content-Type'] = "application/force-download" response.headers['Content-Disposition'] = "attachment; filename=\"#{File.basename(filename)}\"" response.headers["X-Sendfile"] = filename response.headers['Content-length'] = File.size(filename) render :nothing => true this is how it is processed... -- Posted via http://www.ruby-forum.com/. _______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users