0
Wash_Out 페이지의 가이드를 따르고 있습니다.Rails 3.1에서 wash_out을 사용할 때 Null 값 매개 변수
NoMethodError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]):
이 API 컨트롤러는 WSDL에 대한 요청이 잘 실행이
class ApiController < ApplicationController
include WashOut::SOAP
soap_action "integer_to_string",
:args => :integer,
:return => :string
def integer_to_string
render :soap => params[:value].to_s
end
soap_action "concat",
:args => { :a => :string, :b => :string },
:return => :string
def concat
render :soap => (params[:a] + params[:b])
end
end
과 같다 : 나는 SOAP 방법 중 하나를 호출 할 때 나는 다음과 같은 오류를 받고 있어요. 나는이 라이브러리에 대해서도 bug report으로 열거되어 있습니다. 이 문제가 레일스 문제인지 워시 아웃 문제인지는 알 수 없습니다. params 변수는 일반적인 컨트롤러 동작에서 사용할 수 있습니다.
버전 :
- 레일 3.1.3
- wash_out 0.2.3
- 루비 1.9.3
사실 저는 GitHub에서이 문제를 열었던 사람과 같습니다. :) 나는 이것을 닫고 정보를 추가하는 것을 잊었다. 죄송합니다 –