Hi all,

Okay I figured it out myself.

In the controller, I changed the following:

respond_to do |format|
  format.html
  format.js
  format.xml { render :xml => @virtuals }
end

TO

respond_to do |format|
  format.html
  format.js
  format.xml
end

.. and then created an index.xml.builder file

In the builder file, I did something similar:

xml.instruct!
xml.virtuals do
  @virtuals.each do |virtual|
    xml.virtual do
      xml.tsrs virtual.tsrs
      etc...
    end
  end
end

This allows you to remove the pre-rendered xml and replace it with your 
own tags.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to