哪位大大用过 wash_out
我在 soap action 需要 return Staff 类
在 def 中 用 find_by 找到@staff 然后
render :soap=>[@staff]
但是会报
WashOut::Dispatcher::ProgrammerError (SOAP response used # (which is Staff), in the context where a Hash with key of 'staff_no' was expected.):
如果不对@staff添加 [ ] 那么会报
WashOut::Dispatcher::ProgrammerError (SOAP response tried to use '#' (which is of type Staff), as the value for 'value' (which expects an Array).):