Ruby CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Databasedotcom Ruby Gem Tutorial

Challenge end date: 12/7/2011 11:00 PM
Winner: raygao


The new Ruby Gem for was released at Dreamforce last fall with much fanfare.  The gem is a Ruby wrapper for the Salesforce REST APIs and it covers both the Sobject API and the Chatter API. Salesforce-based OAuth is baked into the gem, so your data is secure and access privileges are controlled by the org.

The new gem is great but it’s so new that there’s not much documentation or sample code for it right now. This makes it hard for developers to get started using Ruby. We’d like to remedy this.

Your challenge is to develop a sample app using the gem to demonstrate as much functionality as possible. Some documentation wouldn’t hurt as well.

The results of this challenge will be open-sourced for the world to use.

Use a free Developer org to build a sample app using the databasedotcom gem. The gem is available here along with a sister gem specifically for Rails applications. We’d prefer a Rails app but feel free to use either Rails or Sinatra.  Host your application on Heroku or Cloud Foundry for the world to see.

Include as much functionality from the gem as possible but we’d like to see a lot of sample code with the Sobject class and the Client class (specifically querying and finding records as well as updating and upserting them) and Chatter.