Hi there,

can anybody tell me why I get the error message:

  "undefined method 't' for #<Mailer:0xb6d501e0>"

... when I call the following Mailer?

=================================
class Mailer < ActionMailer::Base

  def signup_notification(user)
    @recipients  = "#{user.email}"
    @from        = APP_CONFIG['mail']['sender']

    @subject     = "#{APP_CONFIG['settings']['name']} - "
    @subject    += "#{ t('.activate_new_account') }."

    @body[:user] = user
    @body[:url]  =
"http://#{APP_CONFIG['settings']['domain']}/activate/#{user.activation_code}"
    @sent_on     = Time.now
  end

end
=================================

(See the translation in the 2 "@subject" lines)

Does I18n have a problem with ActionMailer or what am I missing?

Thanks a bunch for any hint!
Tom
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to