我正在使用 databasedotcom gem 将我的应用程序与 salesforce 同步,它完美地提取了所有帐户的列表,但我需要为每个帐户建立一个主要联系人,我目前有这个:
<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>
@customer 在我的控制器中定义为@customer = Account.find(params[:id])