Skip to content

Instantly share code, notes, and snippets.

View lonnieking's full-sized avatar
🍕

Lonnie King lonnieking

🍕
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lonnieking on github.
  • I am lonnieking (https://keybase.io/lonnieking) on keybase.
  • I have a public key ASBsNtdI1amRXtr0Tz0DK6NHz16US51SXJMuGTv9jERtaQo

To claim this, I am signing this object:

@lonnieking
lonnieking / roo_error.csv
Last active October 23, 2016 23:05
Roo Gem - Error when setting a CSV cell
▲ RACK_ENV='development' ./console
[1] pry(#<Pry::CLI>)> require 'roo/version'
=> true
[2] pry(#<Pry::CLI>)> Roo::VERSION
=> "2.5.1"
[3] pry(#<Pry::CLI>)> sheet = Roo::Spreadsheet.open("roo_error.csv", extension: "csv")
=> <#Roo::CSV:1777166152015560 @filename @options @cell @cell_type @cells_read @first_row @last_row @first_column @last_column @header_line>
[4] pry(#<Pry::CLI>)> sheet.set(0,0,'anything')
NoMethodError: undefined method `[]=' for nil:NilClass
from /Users/Lonnie/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/roo-2.5.1/lib/roo/base.rb:583:in `set_value'