RESTful Api resources in Rails