Mr FRANK ROCCO
2005-Dec-10 15:46 UTC
newbie - how do I create an edit form without scaffold?
Hello, Can someone give me a short code example of how to code an edit form and controlled? Say I want to edit a title with a key of id <form...what goes here <controller> def edit ... what goes here end thanks Frank _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Rick Olson
2005-Dec-10 15:50 UTC
Re: newbie - how do I create an edit form without scaffold?
On 12/10/05, Mr FRANK ROCCO <farocco-H+0wwilmMs3R7s880joybQ@public.gmane.org> wrote:> > Hello, > > Can someone give me a short code example of how to code an edit form and > controlled? > > Say I want to edit a title with a key of id > > <form...what goes here > > > <controller> > def edit > ... what goes here > end > > thanks > FrankGenerate your scaffold with script/generate MyModel. It will show you an example of how to do this. -- rick http://techno-weenie.net
Bruce Balmer
2005-Dec-10 16:12 UTC
Re: newbie - how do I create an edit form without scaffold?
Hi Frank: I''d use the scaffolding to create the form there way and use that as a reference to build my own and then delete the scaffolding produced one. bruce On 10-Dec-05, at 8:46 AM, Mr FRANK ROCCO wrote:> Hello, > > Can someone give me a short code example of how to code an edit > form and controlled? > > Say I want to edit a title with a key of id > > <form...what goes here > > > <controller> > def edit > ... what goes here > end > > thanks > Frank > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Frank Rocco
2005-Dec-10 21:13 UTC
Re: newbie - how do I create an edit form without scaffold?
ok, thanks I just changed the cookbook edit.rhtml to use text_field and it works fine. I am using locomotive on mac. I tried to change an app I coded at work on windows using radrails and it would not run. not sure what''s going on. Thanks again for your help. Frank