使用washout rails渲染肥皂数据

时间:2013-07-08 14:50:42

标签: ruby-on-rails-plugins

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>

1 个答案:

答案 0 :(得分:0)

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