Tags not work after deleting related value #20

Open
hershs opened this Issue Nov 12, 2012 · 0 comments

Comments

Projects
None yet
1 participant

hershs commented Nov 12, 2012

The flow:

Crete two ephemerals "/mydata/eph1" and "/mydata/eph2":
PUT http://my_host:5678/ephemerals/mydata/eph1
data1
PUT http://my_host:5678/ephemerals/mydata/eph2
data2

relate it to tag "mytag":
PUT http://my_host:5678/ephemerals/mydata/eph1/tag
{"tags":"mytag"}
PUT http://my_host:5678/ephemerals/mydata/eph2/tag
{"tags":"mytag"}

Currently I can get all ephemerals by tag by:
GET http://my_host:5678/tags/mytag

Delete one of ephemerals by
DELETE http://my_host:5678/ephemerals/mydata/eph1

Now, when I try to get it by tag again I got error:
{"result":"failure","error_message":"undefined method `name' for nil:NilClass"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment