Trying rails-api