how to download csv

Hi, in my application i want to develop a code where when i click on
download link , csv file get downloaded to client side.
so for this i put
<a href="/download_template.csv" style="color:#000000">
Download the group template (requires Excel).</a>(download_template.csv
is my public dir.)
   code in rhtml.its working correctly for IE but in Mozilla it directly
open in browser instade that it ask for pop up, how should i do it?

Please post this question on the rubyonrails-talk mailing list. This list is reserved for rails-core specific issues only.