Displaying 1 result from an estimated 1 matches for "unusedticket".
2009 Aug 04
1
Output XML to File
...fo, I create the xml and even spit "stuff"
out to file. The issue is that the "stuff" I am writing to a file is a
xml/html cross cluster #@%$ of stuff. Here is some code:
if !params[:id].blank?
@user = User.find_by_id(params[:id])
@xml = ::Builder::XmlMarkup.new
@unusedtickets = Unusedticket.find(:all, :conditions => [''user_id =
? and
updated = true'', @user.id])
end
@xml.DocumentElemnts{
for unusedticket in @unusedtickets
@xml.unusedtickets do
@xml.account_id(unusedticket.account_id)
@xml.locator(unusedticket.loc...