Simple example to how to build a API with Ruby on Rails