I created a file in the tmp directory, which contains the following controller code:
def download file_path = “#{RAILS_ROOT}/tmp/downloads/xxx.html”
data = render_to_string( :action => :show
I created a file in the tmp directory, which contains the following controller code:
def download file_path = “#{RAILS_ROOT}/tmp/downloads/xxx.html”
data = render_to_string( :action => :show