<%=button_to "Download File", :action=>'download'%>
# controller
def download
send_file(path_to_file, :disposition => :attachment)
end
send_file documentation
http://railsmanual.org/module/ActionController::Streaming/send_file/1.1.2
--
Posted via http://www.ruby-forum.com/.