I thought I sent this email (below) to the rails list, but can see no trace of it today! Apologies if it did indeed appear yesterday.... I have an existing database (Microsoft SQL). I know how to specify the connection to the database, but how can I generate or write a model that correpsonds to a table or tables that already exist in the database? Just by specifying things in a new model that match up to the database? Has anyone got a pertinent example? thanks! alex
I have an existing database (Microsoft SQL). I know how to specify the connection to the database, but how can I generate or write a model that correpsonds to a table or tables that already exist in the database? Just by specifying things in a new model that match up to the database? Has anyone got a pertinent example? thanks! alex
Very soon I''ll release a gem called Dr Nic''s Magic Models that will do that. The codes written and I just need time to wrap it up as a gem. It will be release at http://magicmodels.rubyforge.org, so check that site out in a few days. Cheers Nic -- Posted via http://www.ruby-forum.com/.
Dr Nic wrote:> Very soon I''ll release a gem called Dr Nic''s Magic Models that will do > that. The codes written and I just need time to wrap it up as a gem. > > It will be release at http://magicmodels.rubyforge.org, so check that > site out in a few days. > > Cheers > Nic >Hi Nic thanks! Sounds excellent. I''ll keep my eyes peeled. lex