Hi, I managed to get over this problem.
The code I'm using now is: data = params[:subcribers][:subscriber] (data.is_a?(Array) ? data : [data]).each do |d| my_record = Report.create(d) end This works fine wether I have only one subscriber or many in the XML Next will be doing a batch update. But that should be a different story since my problem was doing the iteration with the data. I found the hints from here: http://railsforum.com/viewtopic.php?id=10888 Regards. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

