fritz-bayer-S0/GAf8tV78@public.gmane.org
2008-Sep-01 19:37 UTC
Generate rails models from an existing database
Hi, 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 application. How do I do that - at once? Fritz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 1, 2008, at 3:37 PM, fritz-bayer-S0/GAf8tV78@public.gmane.org wrote:> Hi, > > 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 > application. > > How do I do that - at once? > > FritzYou 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 Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org