Skip to content

Instantly share code, notes, and snippets.

@gmoore
Created April 29, 2011 00:29
Show Gist options
  • Save gmoore/947631 to your computer and use it in GitHub Desktop.
Save gmoore/947631 to your computer and use it in GitHub Desktop.
Started POST "/exchanges" for 127.0.0.1 at Thu Apr 28 20:25:52 -0400 2011
Processing by ExchangesController#create as HTML
Parameters: {"items"=>["32772"], "commit"=>"Exchange these tickets", "order_id"=>"32771", "authenticity_token"=>"msenMBOEhOgjPSTvxDDaoClOtM/1Uvzk6ceck5E3cxM=", "utf8"=>"✓", "tickets"=>["32780"]}
User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
GET http://localhost:8080/orders/orders/32771.json
--> 200 OK 105 (25.9ms)
GET http://localhost:8080/orders/items/32772.json
--> 200 OK 107 (25.6ms)
GET http://localhost:8080/tix/tickets/32780.json
--> 200 OK 213 (22.5ms)
GET http://localhost:8080/tix/tickets/32770.json
--> 200 OK 213 (21.1ms)
Organization Load (0.5ms) SELECT "organizations".* FROM "organizations" WHERE "organizations"."id" = 1 LIMIT 1
Kit Load (0.6ms) SELECT "kits".* FROM "kits" WHERE ("kits".organization_id = 1)
GET http://localhost:8080/stage/events/32768.json
--> 200 OK 193 (32.7ms)
PUT http://localhost:8080/orders/items/32772.json
--> 200 OK 107 (158.1ms)
Returning ticket id [32770]
State is [on_sale]
Transitions::InvalidTransition (Transitions::InvalidTransition):
app/models/athena_ticket.rb:125:in `return!'
app/models/athena_item.rb:78:in `return!'
app/models/exchange.rb:42:in `map'
app/models/exchange.rb:42:in `return_items'
app/models/exchange.rb:37:in `submit'
app/controllers/exchanges_controller.rb:23:in `create'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment