Create a gist now

Instantly share code, notes, and snippets.

Example User model for Inboxes gem
class User < ActiveRecord::Base
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
attr_accessible :email, :password, :password_confirmation, :remember_me, :name
validates :name, :presence => true, :uniqueness => true
inboxes
end
@alexesDev

Must be...

class User < ActiveRecord::Base
has_inboxes
end

@shanab
shanab commented Sep 30, 2012

I think you should change inboxes method to be has_inboxes, since the documentation for inboxes refers to this gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment