hi-ogawa / wordCollector

https://chrome.google.com/webstore/detail/word-collector/jfeinpeakgoblpcelmhdhajmdoeoifap
0 stars 0 forks source link

keep picture data when updating without specified file #31

Closed hi-ogawa closed 9 years ago

hi-ogawa commented 9 years ago

Started PUT "/api/items/1" for 127.0.0.1 at 2015-08-26 11:52:27 +0900 Processing by Api::V1::ItemsController#update as JSON Parameters: {"category_id"=>"1", "item"=>{"word"=>"smokin' indo Long Beach smoking hot", "sentence"=>"Hizzouse the Dogg Pound drizzle Coupe de Ville feel the breeze fo rizzle tha shiznit Mr. Buckwort.", "meaning"=>"Sippin' on gin and juice waddup real deal Holyfield how we do it Snoop if the ride is more fly, then you must buy televizzle nasty you talk too much.", "picture"=>"/system/items/pictures/000/000/001/original/test.png?1440553369"}, "id"=>"1"} Can't verify CSRF token authenticity User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."auth_token" = 'Ejp42ueJdL8NzZ4rTx_F' LIMIT 1 Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."user_id" = ? AND "categories"."id" = 1 LIMIT 1 [["user_id", 1]] Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."category_id" = ? AND "items"."id" = 1 LIMIT 1 ["category_id", 1] begin transaction (0.1ms) rollback transaction Completed 500 Internal Server Error in 66ms

Paperclip::AdapterRegistry::NoHandlerError (No handler found for "/system/items/pictures/000/000/001/original/test.png?1440553369"): app/controllers/api/v1/items_controller.rb:29:in `update'

hi-ogawa commented 9 years ago

how to validate picture data