You could have in your ../app/views/posters/
a file
index.xml.builder
which may be automatically called when the
request needs to render XML. The file
could start like this:
xml.instruct!
xml.posters do
@posters.each do |poster|
xml.poster(...
...
end
end
end
Check out Google for "xml builder Ruby"
and this project from Jim Weirich.
https://github.com/jimweirich/builder
HTH,
Peter
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.