不知道从哪里开始故障排除。我在update_attributes
. 这是我从某人那里接手的应用程序,我什至不完全确定语法,所以任何帮助将不胜感激!我将这个gem 用于 HelloSign API。
class SignatureRequest
include ActionView::Helpers::NumberHelper
include Mongoid::Document
embedded_in :application
field :hello_sign_id
field :signing_url
field :details_url
response = HelloSign.signature_request.deliver(form: FORM_ID) do |request|
request.title = "#{borrower.last_name} Loan Application"
request.subject = "blah"
request.message = "blah."
end
update_attributes(
hello_sign_id: response[:signature_request][:signature_request_id],
signing_url: response[:signature_request][:signing_url],
details_url: response[:signature_request][:details_url]
)
response