In rails you can use .each do || to loop through the returned results of a query. But what if only one line is returned? or you have the possibility of 0, 1, or many? how do you handle these scenarios without throwing an error?
This situation in particular is one where i am accepting nested attributes following ryan's railcast blog (http://railscasts.com/episodes/196-nested-model-form-part-1)
I can have 1 or many nested items being returned which I then need to loop through and write an XML form.