playing around with rails api