Friday, December 16, 2011

How to use the Database.com Ruby Gem


The new Ruby Gem for Database.com 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 Force.com developers to get started using Ruby. We wanted to make it easier for Force.com developers to ramp us so we put our money where our mouth is and ponied up some cash to build a demo app as a tutorial. The results of our Databasedotcom Ruby Gem Tutorial is final and everyone can rejoice.

Raygao takes home $500 for his efforts and the world gets a sample Ruby app that everyone can can use as reference for their next database.com project. Raygao's code is available on the databasedotcom-tutorial github repo for your forking pleasure.

He also put together a nice video demonstrating the functionality of the app, "Fitness Tracker".


No comments:

Post a Comment