SfIntegrator

Simple gem to integration with SalesForce Leads.

Installation

Add this line to your application's Gemfile:

gem 'sf_integrator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sf_integrator

Usage

Run the generator:

rails g sf_integrator:install

This command will copy a template file to app/config/initializers/sf_integrator.rb, in this file you need to write your credentials from salesforce

After that you create a simples ruby class that inherits from SfIntegrator::Lead:

class Lead < SfIntegrator::Lead
end

Now in your controller you can use like a ActiveRecord model, the SfIntegrator::Lead include ActiveModel::Validations.

Contributing

  1. Fork it ( http://github.com//sf_integrator/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request