Demo rails application that you can use for testing with the databasedotcom gem.
Ruby JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

databasedotcom-rails-test

Demo rails application that you can use for testing with the databasedotcom gem.

  1. You'll need to setup a database.com org with a custom object and recrods. Setting up a Database.com Org for Remote Access walks you through this process.

  2. After you cloned this repo, add your OAuth tokens and credentials to the config/databasedotcom.yml file.

  3. Test the connection to the database.com org:

rails console
client = Databasedotcom::Client.new("config/databasedotcom.yml")
client.authenticate :username => YOUR-USERNAME, :password => YOUR-PASSWORD
client.materialize("Account__c")
Account__c.count
  1. Fire up rails and get started.

See Accessing Salesforce Data from Ruby for an indepth tutorial.