Apis with Rails