When Salesforce meets awesome Ruby gems
There are multiple ways to connect your app to a SalesForce account but this one is pretty elegant and modern as it uses the new Winter ‘11 release with support of OAuth2 authorization standard through Omniauth. This article also describe the built of a REST API using HTTParty awesome gem.