Displaying 1 result from an estimated 1 matches for "xml_individu".
2009 Jan 21
1
AR to_xml problem with associations, Builder::XmlMarkup#to_a
...that does not work.
@intervenant = Intervenant.find(params[:id])
output = @intervenant.to_xml( :skip_types => false, :dasherize =>
false) do |xml|
@intervenant.individu.to_xml( :builder => xml, :skip_instruct =>
true, :skip_types => false, :dasherize => false) do |xml_individu|
#do special stuff at this level.....
end
end
Ex that do work but seems little bit dirty:
@intervenant = Intervenant.find(params[:id])
@individu = Individu.find(params[:id])
output = @intervenant.to_xml( :skip_types => false, :dasherize =>
false) do |xml|...