views:

275

answers:

1

I'm struggling with the atom_feed method in a RoR 3 project. The method complains about a

undefined local variable or method `xml'

error so I tried passing the XML builder as an option to the atom_feed (i e atom_feed({:xml => Builder::XmlMarkupet.new})) but when doing so I get a NameError: uninitialized constant Builder exception instead.

Does anyone know why I'm getting either the first or the second exception?

A: 
 require 'active_support/builder' unless defined?(Builder)
Craig Barber