I would like  to transform an xml node into a RoR model but I don't
know how to start ..
 I started using Nokogiri ( easy for newbie to get simple needs ...
but this one is more complex for my current level of understanding ...
xml node  :

       <localized>
             <locale>
                 <code>en_GB</code>
                 <title>Special Team</title>
                 <description>Academy Guests</description>
              </locale>

                <locale>
                <code>en_US</code>
                        ……..
                </locale>

                <locale>
                <code>es</code>
                        ……..
                </locale>
        </localized>

 I defined   in my model  :  serialize :localized, Array

I should get an Array of Hash to be serialized
[ {:code => "en_GB", :title =>  "Special Team",  :description =>
"Academy Guest"}, {:code => "en_US", :title =>  ….. } , {:code =>
"es", :title =>  ….. } ]

how should I proceed or look for info ..
thanks for your help

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to