On 5 May 2016 at 09:34, Artene Radu <
li...@ruby-forum.com> wrote:
> Hello!
>
> I want to make my user model act as messageable.
> I added gem 'mailboxer', github: 'mailboxer/mailboxer' in the gem file.
> I added 'acts_as_messageable' in the user model.
>
> I assiged u1 = User.first
> u2 = User.find_by(id: 2)
> when I write the following command in console:
> u1.send_message u2, "body", "subject"
>
> I get the error:
> NoMethodError: undefined method `email' for
> #<Mailboxer::Message:0x00000007392c70>