Find your content:

Search form

You are here

What's the best gem for calling into a Salesforce org from a Ruby on Rails app?


I am going to be doing some work connecting a Ruby on Rails app into a Salesforce org to create some new data.

Right now there isn't any complex logic, just straight forward data sending into SFDC.

SFDC seems to endorse using:, and it looks like it should meet my needs.

I typically develop exclusively inside of SFDC so speak, so I don't use any of the outward facing meta-data apis, etc.

I know that I could use the REST API, however, I wanted to know if anyone has used both of these processes, and which they would recommend: Toolkit for Ruby vs. RESTful HTTP Callouts (don't think there are any toolkits/frameworks available yet)

Or if someone has a preferred Ruby->SOAP API GEM

Attribution to: jordan.baucke

Possible Suggestion/Solution #1

The Sfdc gem is the best one.

Attribution to: BruceYue

Possible Suggestion/Solution #2

Take a look at the databasedotcom ruby gem. (It works across with Salesforce/ as well.)

It's an amazing wrapper around the REST API. Here is the gem, along with a couple write-ups as well.

Attribution to: Mikey

Possible Suggestion/Solution #3

We are using the databasedotcom gem since a couple of month now. No issues with it.

Attribution to: Andree Wille

Possible Suggestion/Solution #4

The databasedotcom is deprecated. Instead try restforce. It is a lightweight ruby client for the Salesforce REST API.

Attribution to: Satishakumar Awati
This content is remixed from stackoverflow or stackexchange. Please visit

My Block Status

My Block Content