Displaying 2 results from an estimated 2 matches for "event_observer".
2010 Jan 25
1
ActionMailer does not find templates in production mode
...y production environment:
When attempting to send a mail from an ActionMailer the template location
algorithm does not seem to pick up the corresponding template:
ActionView::MissingTemplate (Missing template
event_mailer/approval_requested_notification.erb in view path app/views):
app/models/event_observer.rb:3:in `after_enter_awaiting_approval''
/usr/lib/ruby/1.8/observer.rb:185:in `notify_observers''
/usr/lib/ruby/1.8/observer.rb:184:in `each''
/usr/lib/ruby/1.8/observer.rb:184:in `notify_observers''
(eval):10:in `create_or_update_without_callbacks''...
2008 Apr 03
0
ActiveRecord::Observers?
...ed all our
daemons over from daemon-generator to backgroundrb, with much more
control and power. it''s awesome. the only problem is that we can''t
seem to get the observers to load.
in my worker, I go like this:
def create(args = nil)
ActiveRecord::Base.observers = :event_observer
EventObserver.instance
end
which indicates it''s loaded, but it doesn''t seem to trigger itself.
does anybody have any known issues with observers not observing?
also, I''m a bit confused about how/when it loads environment files -
does it load the environment/...