Try this: http://magicmodels.rubyforge.org/
Dr. Nic also has composite_primary_keys which may be useful. I have a bit of experience with legacy stuff and so just let me know if you need more assistance. Carl David wrote: > Hi all! This is one of those "I'm asking for a friend" type things. No > really, I'm asking for a friend! > > So he has this 'legacy' mySQL database and wants to build a new > version of the site in Rails. > > His desire is to get Rails to build scaffolds for him based on his > database's schema. Without having to sit there and type out every > table and every column in the script/generate scaffold command. > > Naturally I laughed at him for a while. I've got no experience of > dealing with legacy databases but told him that Rails wasn't really > built for that. > > Any suggestions? > > Thanks > David > > -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
