ActionWebService在执行invoke时,会报:
修改:actionwebservice/lib/action_web_service/protocol/abstract.rb,在最后添加:
参考:[url]http://dev.rubyonrails.org/attachment/ticket/7828/0001-Define-remote_addr-in-ActionWebService-Protocol-Si.patch[/url]
NoMethodError (undefined method `remote_addr' for #<ActionWebService::Protocol::SimpleActionPackRequest:0x4ac5fa4>):
修改:actionwebservice/lib/action_web_service/protocol/abstract.rb,在最后添加:
def remote_addr
@env['REMOTE_ADDR']
end
参考:[url]http://dev.rubyonrails.org/attachment/ticket/7828/0001-Define-remote_addr-in-ActionWebService-Protocol-Si.patch[/url]