0
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​​ 哈希,但没有成功。

    How to generate xml as 
<notification_response><ack>false</ack></notification_response>
4

1 回答 1

0

render :soap => {:notification_response => {:ack => true}.to_xml}

于 2013-07-14T02:55:33.620 回答