From: Edward Middleton Date: 2010-06-08T10:59:22+09:00 Subject: Re: Looking for ORM for 'legacy' database. On 06/08/2010 07:05 AM, Dave Howell wrote: > On Jun 6, 2010, at 7:03 , Edward Middleton wrote: >> >> 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. > > .. but I've been assuming that once I add a templating engine and web > adapter, that they'll be much easier to use if I'm giving them > Ruby objects that look like what ORMs make, rather than a big array > or some such. I think you might be underestimating the difficult/complexity of faking a domain model and overestimating the advantage gained from the various template helper functions, as always YMMV. > I still haven't figured out what, exactly, a Domain Model will do for me, > or even exactly what it is, but I'm not (deliberately? consciously?) > trying to throw those advantages away. Thanks for the links. Well it should make having an object model useful rather then a distraction. Edward