simple API on Ruby on Rails