Skip to content

Instantly share code, notes, and snippets.

@BDQ
Created March 27, 2012 13:55
Show Gist options
  • Save BDQ/2216092 to your computer and use it in GitHub Desktop.
Save BDQ/2216092 to your computer and use it in GitHub Desktop.
curl —header "X-Spree-Token: e115604bcaf72453e17ac548479e426a88c86adff56e87b1" http://127.0.0.1:3000/api/products.json
Started GET "/api/products.json" for 127.0.0.1 at 2012-03-27 14:54:58 +0100
Processing by Spree::Api::V1::ProductsController#index as JSON
Completed 500 Internal Server Error in 2ms
NoMethodError (undefined method `has_role?' for nil:NilClass):
/Users/briandquinn/Development/spree/api/app/controllers/spree/api/v1/products_controller.rb:45:in `scope'
/Users/briandquinn/Development/spree/api/app/controllers/spree/api/v1/products_controller.rb:6:in `index'
actionpack (3.2.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment