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?

 
Share

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: Force.com-Toolkit-for-Ruby, 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:

Force.com 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.

http://www.sharealltech.com/articles/5-a-ruby-gem-sfdc-for-the-salesforce-rest-api


Attribution to: BruceYue

Possible Suggestion/Solution #2

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

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

https://github.com/heroku/databasedotcom

https://rubygems.org/gems/databasedotcom

http://wiki.developerforce.com/page/Accessing_Salesforce_Data_From_Ruby

http://fractastical.com/2011/09/01/getting-started-with-the-databasedotcom-gem/


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 https://salesforce.stackexchange.com/questions/1705

My Block Status

My Block Content