I have a form which I’d like to save through a standard RESTful rails pattern, but I also need to insert a lead into SalesForce via post. Admittedly I’m quite a newbie on this – any suggestions on the most elegant way to do this?
Cheers…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You receive the form and then, inside your controller, you make a call to Salesforce, possibly using something like RestClient
You could also use Resque to make this call in a background worker to make your requests faster.