I am trying to render a ruby hash in soap format
render :soap => {:notification_response => {:ack => true}}
The generated xml is like
<notification_response>{"ack"=>"false"}</notification_response>我试图从生成的resposne中消除ruby hash,但没有成功。
How to generate xml as
<notification_response><ack>false</ack></notification_response>发布于 2013-07-14 10:55:34
render :soap => {:notification_response => {:ack => true}.to_xml}
https://stackoverflow.com/questions/17529677
复制相似问题