From: Edward Middleton Date: 2010-06-06T23:03:53+09:00 Subject: Re: Looking for ORM for 'legacy' database. On 06/05/2010 09:40 AM, Dave Howell wrote: > > On Jun 4, 2010, at 7:25 , Edward Middleton wrote: > >> On 06/04/2010 06:29 PM, Dave Howell wrote: >>> Thanks for reading to the end of a pretty long message, and thanks >>> even more to those of you who help me figure out where to look for the >>> answers. :) >> >> Get a copy of "Patterns of Enterprise Application Architecture"[1] read >> and grok that first. If you are just confirming your model to your >> database you don't need objects. They will just be a distraction ;) > > Well, I'm going to need *something* to hand over to the templating engine in order to build web pages. I am in no way advocating you do it this way but if you are going to throw away all the advantage of using a good domain model[1] then you may as well just pass data to your templating engine. Postgresql has a driver ruby-pg[2], thats probably what you want. Edward 1. http://martinfowler.com/eaaCatalog/domainModel.html 2. http://bitbucket.org/ged/ruby-pg/wiki/Home