... for overriding the default behavior of scaffold''s builtin create and update handlers. Any help would be grealy appreciated! -Andy -- Posted via http://www.ruby-forum.com/.
Hi Andy, If by handlers you mean the controller action methods, you just add your own to the controller. I''m guessing you''re using the old Rails magic that keeps those methods hidden. I find it less confusing to make them explicit using .... ruby script\generate scaffold Model Controller The controller will contain all the built in methods. Override them at will. HTH, Bill ----- Original Message ----- From: "Andrew Cowan" <icculus@gmdstudios.com> To: <rails@lists.rubyonrails.org> Sent: 2006-04-03 4:20 PM Subject: [Rails] Looking for an example ...> ... for overriding the default behavior of scaffold''s builtin create > and update handlers. > > Any help would be grealy appreciated! > > -Andy > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Yes, those methods were hidden, this helps alot. Thank you Bill! :) -Andy Bill Walton wrote:> Hi Andy, > > If by handlers you mean the controller action methods, you just add your own > to the controller. I''m guessing you''re using the old Rails magic that keeps > those methods hidden. I find it less confusing to make them explicit using > .... > > ruby script\generate scaffold Model Controller > > The controller will contain all the built in methods. Override them at > will. > > HTH, > Bill > ----- Original Message ----- > From: "Andrew Cowan" <icculus@gmdstudios.com> > To: <rails@lists.rubyonrails.org> > Sent: 2006-04-03 4:20 PM > Subject: [Rails] Looking for an example ... > > > >> ... for overriding the default behavior of scaffold''s builtin create >> and update handlers. >> >> Any help would be grealy appreciated! >> >> -Andy >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Maybe Matching Threads
- Whats the best Ajax way to update a textarea''s text?
- Layout Question w/ code from vendor library
- form_remote_tag can only have one submit button?
- form_remote_tag : additional onsubmit funct. possible ?
- Q: periodically_call_remote ( how to make it execute just once? )