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>

I tried to eliminate ruby hash from the generated resposne but not succeed.

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

1 Answers1

0

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

inossidabile
  • 524
  • 4
  • 13