Help needed in xml feed

hello gentlemen

if i use the below code in model( I want this code to be in model only
not in views)

xml = :target => $stdout, :indent => 2 )
xml.instruct! :xml, :version => “1.1”, :encoding => “UTF-8”
xml.avails {

how can i retrieve this code & feed this code into xml file (say

plz explain with example

advance thx
Have a pleasant day


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