Generate rails models from an existing database


I have used a tool to create a rails conform database, meaning that
all the tables and columns follow the rails conventions. The foreign
keys and relationship tables/columns also exist.

Now I would like to generate all the models from this existing
database at once. It would be great to automatically create the
controllers and views, too - to have simple but functional CRUD

How do I do that - at once?


You could search for "magic models" by Dr. Nic. I don't know if it generates the models or just lets you have "empty" model classes and figures out the associations on-the-fly.


Rob Biedenharn