# Uninitialized constant: GetText::Rails::Configuration

**URL:** <https://www.ruby-forum.com/t/uninitialized-constant-gettext-configuration/120938>\
**Category:** Rails I18n\
**Created:** [November 21, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-gettext-configuration/120938 "2007-11-21T23:11:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@benni](https://www.ruby-forum.com/u/benni)\
**Post date:** [November 21, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-gettext-configuration/120938/1 "2007-11-21T23:11:32Z")

</div>

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
