search for: retrieve_and_save_us

Displaying 1 result from an estimated 1 matches for "retrieve_and_save_us".

Did you mean: retrieve_and_save_user
2008 May 17
5
Help needed
...uot;>, got nil (using .equal?) Any help very appreciated. Thanks Jens --- model --- require ''hpricot'' class XmlImport #< ActiveRecord::Base attr_reader :doc, :user def parse_xml(file) @doc = Hpricot.XML(open(file)) (@doc/:member).each do |data| retrieve_and_save_user(data) end end def retrieve_and_save_user(data) # email address must be unique for members @user = User.find_or_initialize_by_email(email) # save user if not existing if @user.new_record? @user.country = Country.find_by_short((data/:countryShort).inner_html...