Benjamin Meichsner
2007-Nov-22  14:29 UTC
uninitialized constant: GetText::Rails::Configuration
hey
im sorry, thats maybe not the right forum, but i hope you guys can
help...
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 the second line
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
Attachments:
http://www.ruby-forum.com/attachment/1022/uninitialized_constant.txt
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---