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
- Fork it ( http://github.com/
/sf_integrator/fork ) - Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request