Building api with rails tutorial setup