Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Example User model for Inboxes gem

View user.rb
1 2 3 4 5 6 7 8 9 10
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

Must be...

class User < ActiveRecord::Base
has_inboxes
end

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
Something went wrong with that request. Please try again.