I'm using the databasedotcom gem to sync my app with salesforce, it pulls a list of all accounts perfectly, but I need to have a primary contact for each account, I currently have this:
<p>
<b>License Contact:</b>
<%= Account.contact(@customer.Id).Name %>
</p>
<p>
<b>Email:</b>
<%= Account.contact(@customer.Id).Email %>
</p>
<p>
<b>Phone:</b>
<%= Account.contact(@customer.Id).Phone %>
</p>
and @customer is defined in my controller as @customer = Account.find(params[:id])