I have a controller action that allows a user to download a file with an extension of .ppt . It\'s not really a powerpoint binary, just an xml-ish format that powerpoint can
A possible example:
def show @item = Item.find(params[:id]) respond_to do |format| format.html # show.html.erb format.ppt { response.headers['Content-Disposition'] = "attachment; filename=\"#{@item.filename}.ppt\"" } # show.ppt.erb format.xml { render :xml => @item } end end