Skip to content

Instantly share code, notes, and snippets.

@cadwallion
Created December 28, 2011 14:58
Show Gist options
  • Save cadwallion/1528233 to your computer and use it in GitHub Desktop.
Save cadwallion/1528233 to your computer and use it in GitHub Desktop.
Really, ActiveShipping? REALLY?
>> hash = { 'password' => 'pass*123', 'login' => 'testperson', 'key' => '1234567890' }
=> {"key"=>"1234567890", "login"=>"testperson", "password"=>"pass*123"}
>> ActiveMerchant::Shipping::UPS.new(hash) ArgumentError: Missing required parameter: key
from /Users/cadwallion/.rvm/gems/ruby-1.8.7-p352@gatorade_direct/gems/active_shipping-0.9.13/lib/active_merchant/common/requires_parameters.rb:11:in `requires!'
>> hash = { :password => 'pass*123', :login => 'testperson', :key => '1234567890' }
=> {:login=>"testperson", :key=>"1234567890", :password=>"pass*123"}
>> ActiveMerchant::Shipping::UPS.new(hash) => #<ActiveMerchant::Shipping::UPS:0x103d6b9c0 @last_request=nil, @options={:login=>"testperson", :key=>"1234567890", :password=>"pass*123"}, @test_mode=nil>
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment