Domanda

I am following this tutorial to add messaging functionality between the users in my rails app, but got an error in my User model.

class User < ActiveRecord::Base
  has_mailbox
end

This gives me the following error:

undefined local variable or method `has_mailbox' for #<Class:0xb60f6f84>

Any ideas?

È stato utile?

Soluzione

I've checked this gem, try to run

rails g has_mailbox:install

when you install any gem in rails app, the good idea is to check generators available

rails g //list of available generators
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top