开发者

Rails 3.0.7: Mail is not a module - error

After setting up some Mailer-classes, I got this error:

/usr/local/lib/ruby/gems/1.9.1/gems/actionmailer-3.0.7/lib/action_mailer/tmail_compat.rb:1:in `<top (required)>': Mail is not a module (TypeError)

I have no idea what might be meant, do you have an ide开发者_Go百科a?

I just created some mailers with rails g mailer my_mailer and after this, the error came up.

Please help.

Yours

Joern


Did you define a class called Mail accidentally? This is a reserved class in Rails, as the actionmailer gem that comes with Rails depends on the Mail gem. You will have to choose another name.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜