I have a UserObserver registered which handles sending the emails, via
a UserNotifier, for user signup etc.
It works fine in my specs (well everything is being called as
expected) however in the application if I call user.save I get the
following error:
“Unprocessed view path found: nil. Set your view paths with
#append_view_path, #prepend_view_path, or #view_paths=.”
I’ve tried adding the following to my mailer:
ActionController::Base.view_paths << Rails.root + ‘/app/views’
But that doesn’t make any difference, I guess the observer is outside
of the realm of the controller. I’m sure this was working a while back
but doesn’t seem to be anymore (and I’ve made a lot of changes since
then).
Any ideas?