A basic implementation of a restful api in Ruby (RoR)