Create rxml file

Hi All

#controller:
@users=User.find(:all,:conditions=>[“id=12”])
@faxs=FaxService.find(:all,:conditions=>["user_id=12 "])

My view is generate like this:

<?xml version="1.0" encoding="UTF-8"?> 303 302 301 305 US [email protected] 12 4087723792

But i want like this
#View .rxml

<?xml version="1.0" encoding="UTF-8"?> US [email protected] 12 4087723792 < access_number_id type="integer">303 302 301 305

can some one tell me how to generate xml file?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs