Displaying 4 results from an estimated 4 matches for "create_from_xml".
2009 Mar 16
0
Reading XML-file + saving to sqlite3 database
...e done some research and found REXML, but I can''t get it working
correctly.
With "@cust_xml_string = File.read("CUST.xml")", and debug
(@cust_xml_string) i''ve been able to show the content of the xml on
the screen.
I''ve also been using ''Hash.create_from_xml'', but then I get the
following error: ''undefined method `create_from_xml'' for Hash:Class''
And I think REXML is faster, isn''t it?
Now I''m a little bit stuck and confused on how to work further.
Thx!
--~--~---------~--~----~------------~------...
2006 Mar 20
0
Re: Rails Digest, Vol 18, Issue 502
...What about some
> utility class that really doesn''t fit as a model?
>
> Thanks again,
>
> - Brent
>
> On 3/20/06, Norman Timmler <lists@inlet-media.de> wrote:
> > I would suggest storing your Article model in the app/models directory
> > and adding a create_from_xml class method, or parse the xml in the
> > controller as you already do.
> >
> > --
> > Norman Timmler
> >
> > http://blog.inlet-media.de
> >
> > _______________________________________________
> > Rails mailing list
> > Rails@lists.rubyonr...
2006 Mar 20
24
Newbie Question about Custom Classes
Sorry if this is a complete newbish question, but I''m trying to wrap
my head around creating custom classes in my rails webapp. I''m
normally a Java developer, but I figured I''d give RoR a try and see
how I like it, and whether it would be useful for production use with
a new client.
Anyways, what are the best practices for custom classes? Where and/or
how do I create
2006 Apr 28
8
Rails magic for MySQL -> XML file -> MySQL and back again ??
Greetings!
My little app collects data from the user, persists it in about a dozen tables during the session, writes out / saves an XML file that''s downloaded to the user''s PC when they''re done, then clears the db of all data entered, and deletes the XML file from the server.
Now I need to allow the user to upload the same XML file they created earlier and put it back