Template of a Rails App that interacts with the Force.com platform
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
spec
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README.markdown
Rakefile
config.ru
rails3
webrat.log

README.markdown

RailsForce - App Template

About

This is an App template for a Rails application that interacts with the Force.com platform.

Getting Started

Download

  1. git clone git@github.com:jonathansnd/RailsForce_AppTemplate.git
  2. cd RailsForce_AppTemplate
  3. rails s
  4. Go to https://localhost:3000 and login to your salesforce org
  5. You will need to generate your own keys and drop them in the lib/certs dir. Check out the README in that dir for more info

Configuration from the environment

There are some environment variables under "/config/environments/" where you can define settings for :

  • API Version
  • Login URL
  • Consumer Keys

Working with a sandbox environment

If you're testing against a sandbox you must change the sfdc_login environment variable to https://test.salesforce.com

Configuration of OAuth parameters

You can find all of the Omniauth related parameters in lib/forcedotcom