# Should I be using observers for an enquiry?

**URL:** <https://www.ruby-forum.com/t/should-i-be-using-observers-for-an-enquiry/183100>\
**Category:** Rails\
**Created:** [February 8, 2010, 5:25am UTC](https://www.ruby-forum.com/t/should-i-be-using-observers-for-an-enquiry/183100 "2010-02-08T05:25:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ct9a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Post date:** [February 8, 2010, 5:25am UTC](https://www.ruby-forum.com/t/should-i-be-using-observers-for-an-enquiry/183100/1 "2010-02-08T05:25:06Z")

</div>

hi there,  
I recently used observers in other parts of my application and really  
like how neat it is (ie. controllers don’t have to be carrying extra  
notification logic).

Now, I have another functionality for which users of the site can  
fill in a form for enquiries.  
Yes, I do have an “enquiries” database table set up.

My question is, should I be using observers for an enquiry?  
I know that observer methods only take 1 object but how do I access  
the contents of the form (ie. params)?

thanks

---

<div class="post-metadata">

**Author:** ![ct9a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Post date:** [February 8, 2010, 6:06am UTC](https://www.ruby-forum.com/t/should-i-be-using-observers-for-an-enquiry/183100/2 "2010-02-08T06:06:39Z")

</div>

On Mon, Feb 8, 2010 at 3:23 PM, ct9a [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> the contents of the form (ie. params)?  
> Checking out the observer pattern might help you out on deciding if  
> this is an observer or not.

You might use an observer to send off an email for the enquiry or the  
like, but most of the logic would be in the enquiry model.

Mikel

–

> **[Mikel Lindsaar](https://lindsaar.net/)**
>
> Internet Home for Mikel Lindsaar
