Displaying 1 result from an estimated 1 matches for "div_for_csv_link".
2008 Oct 27
8
why can't johnny download?
...ile_path = "/tmp/#{modified_email}.csv"
...
FasterCSV.open(@temp_download_file_path, "w") do |csv|
@contacts.each do |one_contact|
...csv stuff that is working and not relevant
end
end
render :update do |page|
page.replace_html ''div_for_csv_link'', "<a
href=''file:#{@temp_download_file_path}'' target=''_blank'' >Download the
file here</a>"
end
The resulting link looks like this when you copy it or hover over it:
file:///tmp/fred_at_creditcards_and_loans_com.csv
Do I need...