You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asanghi edited this page Mar 13, 2011
·
1 revision
If you're getting an error on using this gem on Heroku with the new :template_path functionality, the solution is to convert the Read Only Excel template into a StringIO which can be written to.
template_string=StringIO.new(File.open('/path/to/your/template.xls'){|x|x.read})excel_rails(:filename=>"superfile.xls",:template_path=>template_string)do |spreadsheet|
# Funky cool stuff with spreadsheets that will work on Herokuend