This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install luigi-activerecord-activesalesforce-adapter
| name | age | message | |
|---|---|---|---|
| |
README | Fri Jul 11 09:21:26 -0700 2008 | |
| |
activerecord-activesalesforce-adapter.gemspec | Sat Aug 09 12:28:49 -0700 2008 | |
| |
lib/ | ||
| |
test/ | Fri Jul 11 09:21:26 -0700 2008 |
== Welcome to Active Salesforce
ActiveSalesforce is an extension to the Rails Framework that allows for the dynamic creation and management of
ActiveRecord objects through the use of Salesforce meta-data and uses a Salesforce.com organization as the backing
store.
== Getting started
1. gem install activesalesforce
2. if you have not already done so generate your initial rails app using "rails <myappname goes here>"
3. edit config/environment.rb and add "require_gem 'activesalesforce'" to the end of the "Rails::Initializer.run do
|config|" block, e.g.
Rails::Initializer.run do |config|
...
require 'activesalesforce'
end
4. edit database.yml
adapter: activesalesforce
url: https://www.salesforce.com
username: <salesforce user name goes here>
password: <salesforce password goes here>
NOTE: If you want to access your Salesforce Sandbox account use https://test.salesforce.com as your url instead
5. proceed using standard Rails development techniques!
== Advanced Features
1. Session ID based Authentication: Add the following to /app/controllers/application.rb to enable SID auth for all
controllers
class ApplicationController < ActionController::Base
before_filter ActiveSalesforce::SessionIDAuthenticationFilter
end
2. Boxcar'ing of updates, inserts, and deletes. Use <YourModel>.transaction() to demark boxcar boundaries.
== Description of contents
lib
Application specific libraries. Basically, any kind of custom code that doesn't
belong under controllers, models, or helpers. This directory is in the load path.
script
Helper scripts for automation and generation.
test
Unit and functional tests along with fixtures.












