followed tutorial, got 406 error, added .json to the :id in the resource call & it worked