Should I be using observers for an enquiry?

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

On Mon, Feb 8, 2010 at 3:23 PM, ct9a [email protected] 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


http://lindsaar.net/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs