dino d.
2008-Feb-26 04:09 UTC
any way to generate scaffold controller from existing model?
hi- i''m sure this is a FAQ, but can''t find an answer. i''ve already developed the model and migration, can i generate controller and views (forms) scaffolding that looks into the table and picks out the fields automatically? thanks, dino --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brian Hogan
2008-Feb-26 06:47 UTC
Re: any way to generate scaffold controller from existing model?
not anymore. It''s been removed from Rails 2.0. However, I made a generator that handles the creation of the forms, which is the part that people really care about. It''ll generate the new and edit forms. It won''t build you a controller, but the code to create / update records is simple enough. http://www.napcsweb.com/blog/2007/11/04/scaffoldform-generator/ On Mon, Feb 25, 2008 at 10:09 PM, dino d. <dinodorroco-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> > hi- > > i''m sure this is a FAQ, but can''t find an answer. i''ve already > developed the model and migration, can i generate controller and views > (forms) scaffolding that looks into the table and picks out the fields > automatically? > > thanks, > dino > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---