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>
我试图从生成的响应中消除ruby哈希,但没有成功。
How to generate xml as
<notification_response><ack>false</ack></notification_response>
答案 0 :(得分:0)
render :soap => {:notification_response => {:ack => true}.to_xml}