Read my latest article: 8 things I look for in a Ruby on Rails app (posted Thu, 06 Jul 2017 16:59:00 GMT)

Coming soon to Rails 1.1

Posted by Tue, 28 Feb 2006 04:58:00 GMT

4 comments Latest by Don Park Tue, 07 Mar 2006 18:59:33 GMT

Scott Raymond has been kind enough to provide a nice overview of what is to come in Rails 1.1!

Where did my observer go?

Posted by Tue, 28 Feb 2006 04:05:00 GMT

4 comments Latest by Robby Russell Tue, 14 Mar 2006 14:05:29 GMT

I was playing around with an application from script/console and all of a sudden… my Observers just stopped working. It took me a while to figure out that when I would call Dispatcher.reset_application!... it wouldn’t reload config/environment.rb where I have defined the observers.

I really don’t like that this is the current implementation for invoking Observers and adding them to the controllers is not kosher with my (do-it-in-script-console) approach.

The current solution?


# app/models/foo_bar.rb
class FooBar < ActiveRecord::Base
end

FooBarObserver.instance

... there needs to be a better way!