I, [2015-11-13T12:15:43.436750 #3373] INFO -- : Started POST "/items" for 143.167.152.198 at 2015-11-13 12:15:43 +0000
I, [2015-11-13T12:15:43.438472 #3373] INFO -- : Processing by ItemsController#create as HTML
I, [2015-11-13T12:15:43.438598 #3373] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"cBL3mydQ1sG7U5SnJydGznA1dvQEQ/ulRzrdMoD6ffeFOBxrji5whQ3kMvUiPDocKMgvl0Z3aFcmZevdrbPRjA==", "item"=>{"barcode"=>"9781305266346"}, "commit"=>"Create Item"}
D, [2015-11-13T12:15:43.441299 #3373] DEBUG -- : Admin Load (0.5ms) SELECT "admins".* FROM "admins" WHERE "admins"."id" = $1 ORDER BY "admins"."id" ASC LIMIT 1 [["id", 2]]
D, [2015-11-13T12:15:43.444375 #3373] DEBUG -- : Item Load (1.5ms) SELECT "items".* FROM "items" WHERE "items"."barcode" = $1 LIMIT 1 [["barcode", "9781305266346"]]
I, [2015-11-13T12:15:44.150015 #3373] INFO -- : Completed 500 Internal Server Error in 711ms
F, [2015-11-13T12:15:44.152383 #3373] FATAL -- :
NoMethodError (undefined method `[]' for nil:NilClass):
app/helpers/items_helper.rb:95:in `lookup_by_isbn_google'
app/helpers/items_helper.rb:15:in `lookup_by_isbn'
app/controllers/items_controller.rb:37:in `create'