Sending form data to salesforce accounts in rails observers

We have a web form that does double-duty as account creation and lead generation, so we couldn't use the sales force web form to integrate our sales force account. When a user creates an account an info_request is generated. I stuck the following code in my info_request_observer to integrate with SF on the back end.