Resource.all returns json not just an id