Displaying 1 result from an estimated 1 matches for "webservice_payment_api".
2007 Jan 27
0
Interchanging ActiveRecord and ActionWebService... Help with my problem and suggestions for Best Practices.
...eturns => [:string]
def make_payment(contract_payment)
puts contract_payment.inspect
end
end
class TestController < ApplicationController
def handle_payment
if (@contract_payment.valid?)
# ActiveRecord - Works!
# @contract_payment.save
# WebService
# webservice_payment_api = WebservicePaymentApi.new
WebservicePaymentApi.make_payment(@contract_payment)
end
end # handle_payment
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to...