Get rails API working