Skip to content

Instantly share code, notes, and snippets.

@softr8
Created May 14, 2011 18:07
Show Gist options
  • Save softr8/972462 to your computer and use it in GitHub Desktop.
Save softr8/972462 to your computer and use it in GitHub Desktop.
ruby 1.9.2 and ticketmaster
ruby-1.9.2-p180 :009 > driver.projects.first.tickets
RuntimeError: can't typecast "252"
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activesupport-3.0.6/lib/active_support/core_ext/hash/conversions.rb:96:in `typecast_xml_value'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activesupport-3.0.6/lib/active_support/core_ext/hash/conversions.rb:118:in `block in typecast_xml_value'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activesupport-3.0.6/lib/active_support/core_ext/hash/conversions.rb:117:in `each'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activesupport-3.0.6/lib/active_support/core_ext/hash/conversions.rb:117:in `inject'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activesupport-3.0.6/lib/active_support/core_ext/hash/conversions.rb:117:in `typecast_xml_value'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activesupport-3.0.6/lib/active_support/core_ext/hash/conversions.rb:78:in `from_xml'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activeresource-3.0.6/lib/active_resource/formats/xml_format.rb:21:in `decode'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activeresource-3.0.6/lib/active_resource/connection.rb:79:in `block in get'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activeresource-3.0.6/lib/active_resource/connection.rb:217:in `with_auth'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activeresource-3.0.6/lib/active_resource/connection.rb:79:in `get'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activeresource-3.0.6/lib/active_resource/base.rb:857:in `find_every'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/activeresource-3.0.6/lib/active_resource/base.rb:777:in `find'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/ticketmaster-0.5.6/lib/ticketmaster/ticket.rb:111:in `search'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/ticketmaster-0.5.6/lib/ticketmaster/ticket.rb:102:in `find_by_attributes'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/ticketmaster-0.5.6/lib/ticketmaster/ticket.rb:61:in `find'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/ticketmaster-0.5.6/lib/ticketmaster/helper.rb:17:in `easy_finder'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/ticketmaster-0.5.6/lib/ticketmaster/project.rb:120:in `tickets'
from (irb):9
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/railties-3.0.6/lib/rails/commands/console.rb:44:in `start'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/railties-3.0.6/lib/rails/commands/console.rb:8:in `start'
from /Users/ecruz/.rvm/gems/ruby-1.9.2-p180@panorama/gems/railties-3.0.6/lib/rails/commands.rb:23:in `<top (required)>'
from script/rails:6:in `require'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment