Quantcast
Channel: Robby on Rails: Where did my observer go?
Browsing latest articles
Browse All 5 View Live

"Where did my observer go?" by Michael Gorsuch

Robby – I thought that you invoked Observers in rails as follows: observer :foo_bar_observer

View Article



"Where did my observer go?" by Robby Russell

Michael,Do you mean in config/environment.rb?Yes, you do… but if you are in script/console and run Dispatcher.reset_application! it doesn’t reload your Observers.

View Article

"Where did my observer go?" by Michael Gorsuch

Sorry for the late response:I thought that was placed in the controller class.For example, FooController has a line at the top of the class stating: observer :foo_bar_observer

View Article

"Where did my observer go?" by Robby Russell

Michael,That assumes that your application is always engaged through your controllers. If you have a script that engages your models… do you not want your observers to still work?

View Article

Where did my observer go?

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...

View Article

Browsing latest articles
Browse All 5 View Live


Latest Images