Now using rails API