ActiveSalesforce uses databasedotcom gem to wrap the communication with salesforce and contributes to simplify the creation of objects (Lead) in salesforce.
Add this line to your application's Gemfile:
gem 'active_salesforce'
And then execute:
$ bundle
Or install it yourself as:
$ gem install active_salesforce
- Create a class and inherit from ActiveSalesforce::Base
- Map the local attributes to salesforce attributes (you will find an example at https://github.com/tchiarato/rd-salesforce)
- Create config files to store salesforce's configurations
- Invoke create_lead to create a new lead at salesforce.
- Fork it ( https://github.com/[my-github-username]/active_salesforce/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 a new Pull Request