On 1/30/06, csn <cool_screen_name90001@yahoo.com>
wrote:> With observers, you have to do (according to AWDWR):
>
> ItemObserver.Instance
>
> What is ''.Instance''? I''ve looked in both the
Rails and Ruby docs and
> don''t see any mention. I presume it''s like
''new''?
>
> thanks
> csn
It''s a class method of ActiveRecord::Observer that instantiates the
observer and starts observing its classes. You can use the observer
helper for controllers, however:
observer :people_observer
--
Rick Olson
http://techno-weenie.net