Yes, that's what scaffolding does (script/generate scaffold ..) For further details, look into any of the Rails tutorials, and Dave Thomas' book *Agile Web Development w/ Rails
*Peter Fitzgibbons (847) 687-7646 Email: [EMAIL PROTECTED] IM GTalk: peter.fitzgibbons IM Yahoo: pjfitzgibbons IM MSN: [EMAIL PROTECTED] IM AOL: [EMAIL PROTECTED] On Tue, Nov 11, 2008 at 11:13 PM, Micheal Cooper <[EMAIL PROTECTED]>wrote: > > I am currently using a very early framework called ERW, and I getting > into Ruby so that I can recreate (with paid help) a very large college > administration db app in Rails. Until relatively recently, I was going > to do this in Django, and one reason for the choice was Django's > excellent feature of automatically generating the basic CRUD forms > (Django calls them admin forms) for a newly-created database. The > framework I am using now also has this feature, though it is overly > complex and difficult to maintain. > > I want to know if there is a feature in or add-on to Rails that looks > at the database and creates customizable CRUD interfaces for all > tables, including selectable foreign keys and filters, etc. Ideally, > the forms would be scripts that can be filled-out and customized and > only need to be recreated when the database has been changed. > > ERW's admin interface is PHP code that dynamically creates the forms > when you call the script, and customization requires precise and > redundant coding because generic scripts are used to create all the > CRUD forms. For example, all admin list interfaces are done by > list.php, so getting an admin list for table people requires going to > 'list.php?table=people'. > > I am hoping that ROR has a better way. > > -- > Micheal Cooper > Miyazaki, Japan (GMT+9, no DST) > > > > --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---