Sunday, February 7, 2010

[Rails] 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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate