# Adding actions to in\_place\_edit

**URL:** <https://www.ruby-forum.com/t/adding-actions-to-in-place-edit/131482>\
**Category:** Rails\
**Created:** [March 10, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/adding-actions-to-in-place-edit/131482 "2008-03-10T15:44:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 10, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/adding-actions-to-in-place-edit/131482/1 "2008-03-10T15:44:38Z")

</div>

When an in\_place\_edit field’s value has been updated I would like to  
do something such as sending an email. How can I add functionality to  
the set\_{obj}\_ method?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 10, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/adding-actions-to-in-place-edit/131482/2 "2008-03-10T16:09:23Z")

</div>

On 10 Mar 2008, at 14:43, removed\_email\_address@domain.invalid wrote:

> When an in\_place\_edit field’s value has been updated I would like to  
> do something such as sending an email. How can I add functionality to  
> the set\_{obj}\_ method?

Just write the method yourself instead of leaning on in\_place\_edit\_for ?

Fred

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 10, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/adding-actions-to-in-place-edit/131482/3 "2008-03-10T16:50:51Z")

</div>

Yeah, I sort of came to that conclusion - not that it’s that hard.  
Thanks.

On Mar 10, 11:08 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
