I am trying task G in B1.6 and I am having trouble getting the builder template to work correctly. When the who_bought.xml.builder template is called, I get
undefined local variable or method `xml’ for #
My understanding is that the “xml” variable is auto-magically created for you if the template is named “.xml.builder” (http://api.rubyonrails.org/classes/ActionView/Base.html). I have copied the code directly from the PDF. I have run “gem install builder”. I added what I thought to be missing “require ‘builder’” statements to the info controller. No luck. Any help?