Specifically what I am trying to do is add new worksheets alongside ones already there. I've tried to use book.create_worksheet :name => 'new_sheet'
but it overwrites the previous worksheet.
I searched the site here and saw some people using a different gem that allowed "book.add_worksheet" (the Spreadsheet gem is supposed to have support for other gems, like it's supposed to be like 3 gems in 1 or something...) and that almost worked as well but I get the error undefined method 'workbook=' for "new_sheet":String (NoMethodError)
when doing the line sheet = book.add_worksheet("new_sheet")
.
Another thing I tried was sheet = Spreadsheet::Worksheet.new
and I see on the Spreadsheet rubyforge page that there is the public class method new(opts={})
which, if you click to see the code, includes the line @name = opts[:name] || Worksheet
which leads me to believe I should be able to use this to create and name a new worksheet, but I can't figure out the correct syntax.
Is what I am attempting possible? It seems like I'm getting close but I'm not quite hitting it.