Tutorial to create a REST api on rails