Ruby Forum Rails I18n > uninitialized constant: GetText::Rails::Configuration

Posted by Benjamin Meichsner (benni)
on 21.11.2007 23:11
Attachment: uninitialized_constant.txt (4,4 KB)
hey

I'm using gettext (1.10.0) in my app (rails 1.2.5) and everything works
fine except a litte action.

this exception occurs, when i finish an order (were using a software to
manage foodcoops) and the users should get an mail-notification.

when i follow the backtrace, the error occurs in the mailer-method,
which is used to build the templates:

# message.rb, our mail-model
# exception is raised in line 2

def self.from_template(template, vars, attributes)
  view = ActionView::Base.new(Rails::Configuration.new.view_path, {},
MessagesController.new)
  new(attributes.merge(:body => view.render(:partial => template,
:locals => vars)))
end

I hope, you have an idea.

greetings
benni