Simple apis in Rails