I have created an ActionMailer and am able to use it successfully in
development. As soon as I move it to the production environment, I am
getting an exception. It seems like it must be some kind of
configuration issue. Does any have an idea based on the stack trace?
RegistrationMailer.create_confirm(reg)
TypeError: can’t convert nil into String
from
./script/…/config/…/config/…/vendor/plugins/engines/lib/engines/rails_extensions/templates.rb:128:in
dirname' from ./script/../config/../config/../vendor/plugins/engines/lib/engines/rails_extensions/templates.rb:128:in
render’
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.2/lib/action_mailer/base.rb:476:in
render_message' from /usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.2/lib/action_mailer/base.rb:424:in
create!’
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.2/lib/action_mailer/base.rb:385:in
initialize' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/core_ext/module/attribute_accessors.rb:26:in
new’
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.2/lib/action_mailer/base.rb:332:in
`method_missing’
from (irb):3