Forum: Ruby on Rails Minimum needed to observe a model

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5201e306c37562746a8cdeebe24bef32?d=identicon&s=25 Jose Hales-Garcia (Guest)
on 2006-04-28 09:30
I have a model called Post and a observer called PostObserver.  I also
have in environment.rb file the line:

config.active_record.observers = :post_observer

I read that observers default to the model with the same name, but the
model class isn't being observed.

Observe works if I put in the ForumController:

observer :post_observer

But this doesn't seem right.

Jose
This topic is locked and can not be replied to.