Forum: Ruby on Rails Minimum needed to observe a model

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jose Hales-Garcia (Guest)
on 2006-04-28 11: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.

This topic is locked and can not be replied to.