Need to quickly export some data to Excel? How about doing it in just a couple of lines of code?
Install the plugin:
ruby script/plugin install http://svn.napcsweb.com/public/excel
Here is an example method:
e = Excel::Workbook.new
@project = Project.find(:all)
e.addWorksheetFromActiveRecord "Project", "project", @project
headers['Content-Type'] = "application/vnd.ms-excel"