Basic REST API in Ruby on Rails