anibalcucco/basecamp-wrapper — Issue #11: NoMethodError: undefined method `collect!' for #<Hash:0x00000100b74c50>
Author: thinkgareth
Created: 2011-10-12 10:56:43+00:00
State: open

Hi Guys,

I can't seem to get any further than this:

Loading development environment (Rails 3.1.1)

irb(main):001:0> Basecamp.establish_connection!('xxxxxxxxxxx.basecamphq.com', 'xxxxxxxxxxxxxxxxxxx', 'X', true)
=> #>

irb(main):002:0> Basecamp::Person.me
=> #"Gareth Edwards", "title"=>"Developer", "phoneNumberMobile"=>"xxxxxxx", "recentProjectsCount"=>6, "admin"=>false, "avatarUrl"=>"https://asset0.37img.com/global/missing/avatar.png?r=3", "phoneNumberHome"=>"", "baseType"=>"Person", "firmId"=>xxxxxx, "id"=>xxxxxxx, "emailAddress"=>"mail@thinkgareth.com", "type"=>"FirmEmployee", "phoneNumberOfficeExt"=>"", "clientId"=>0, "phoneNumberOffice"=>""}, @prefix_options={}, @persisted=false>

irb(main):003:0> Basecamp::Project.all
NoMethodError: undefined method `collect!' for #
from /usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/activeresource-3.1.1/lib/active_resource/base.rb:922:in `instantiate_collection'
from /usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/activeresource-3.1.1/lib/active_resource/base.rb:894:in `find_every'
from /usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/activeresource-3.1.1/lib/active_resource/base.rb:806:in `find'
from /usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/activeresource-3.1.1/lib/active_resource/base.rb:832:in `all'
from (irb):3
from /usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands/console.rb:45:in `start'
from /usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands/console.rb:8:in `start'
from /usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:40:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'