I''m experiencing problems getting observers when using Webrick. A test
setup
is detailed below.  I''ve noticed that the observer isn''t even
being loaded.
Can anyone tell me if I''m doing something incorrectly or whether this
is a known issue with Webrick?  This works without problems when
running under Apache.
Platform: Windows XP, Ruby 1.8.2, Rails 0.13.1 (also tested on Redhat
Enterprise Linux 3)
1. Create a database called observer_test.
2. Create a test_records table (tested against MySQL):
CREATE TABLE `test_records` (
 `id` int(10) unsigned NOT NULL auto_increment,
 `user_value` varchar(20) NOT NULL default '''',
 `observer_value` varchar(20) NOT NULL default '''',
 PRIMARY KEY  (`id`));
3. C:\> rails observer_test
4. Edit config/database.yml:
development:
 adapter: mysql
 database: observer_test
 host: localhost
 username:
 password:
5. C:\> ruby script\generate scaffold TestRecord
6. Create the file app\models\test_observer.rb with:
class TestRecordObserver < ActiveRecord::Observer
  observe TestRecord
  def after_create(test_record)
    test_record.observer_value = "observer touched this!"
    test_record.save
  end
end
7. Append to the end of config/environment.rb:
TestRecordObserver.instance
8. C:\>ruby script\server
9. Browse to http://localhost:3000/test_records
10. Add a new test_record.
11. View list of tests and see if the observer has updated the
observer_value field with "observer has touched this!".
12. There is no step 12, because step 11 fails for me.
-- 
Dennis Sutch
dennis-+mObuC4wx48AvxtiuMwx3w@public.gmane.org