# Looking for an example

**URL:** <https://www.ruby-forum.com/t/looking-for-an-example/93487>\
**Category:** Rails\
**Created:** [April 3, 2006, 11:20pm UTC](https://www.ruby-forum.com/t/looking-for-an-example/93487 "2006-04-03T23:20:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aginghipster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Post date:** [April 3, 2006, 11:20pm UTC](https://www.ruby-forum.com/t/looking-for-an-example/93487/1 "2006-04-03T23:20:04Z")

</div>

… for overriding the default behavior of scaffold’s builtin create  
and update handlers.

Any help would be grealy appreciated!

-Andy

---

<div class="post-metadata">

**Author:** ![aginghipster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Post date:** [April 3, 2006, 11:43pm UTC](https://www.ruby-forum.com/t/looking-for-an-example/93487/2 "2006-04-03T23:43:18Z")

</div>

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 C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: 2006-04-03 4:20 PM  
Subject: [Rails] Looking for an example …

---

<div class="post-metadata">

**Author:** ![aginghipster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Post date:** [April 3, 2006, 11:46pm UTC](https://www.ruby-forum.com/t/looking-for-an-example/93487/3 "2006-04-03T23:46:34Z")

</div>

Yes, those methods were hidden, this helps alot. Thank you Bill! 🙂

-Andy
