export file to csv Rails 0.14.1


I am trying to figure out how to export to a csv. I have found lots
on how to do this in later versions of Rails but I unfortunately I
must use this version of rails. Anyone know of a good tutorial on how
to do this?