So instead of sending an email after a user is created (for example)
from the observer, It would be better to have the controller send it
or call a model method to send it?

On May 6, 7:19 pm, Phlip <[email protected]> wrote:
> Gavin wrote:
> >> Firstly, after_create should not call the service directly - it should 
> >> call a
> >> method in a GoogleApi module that calls the service. (See the thread "no 
> >> sql in
> >> the controller guideline".)
>
> > Would this apply to model_observers too?
>
> Yes; MVC theory suggests observers are controllers. We all wish observers did
> not exist, and controllers simply watched everything! Observers are just 
> exposed
> plumbing...
>
> --
>    Phlip
>    http://flea.sourceforge.net/resume.html
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to