Nancy B

Joined

610 Experience
5 Lessons Completed
0 Questions Solved

Activity

Posted in Comments With Polymorphic Associations Discussion

Got it! In my comments.rb:

has_many :commenters, through: :comments, source: :user

Posted in Comments With Polymorphic Associations Discussion

belongs_to :commentable, polymorphic: true
belongs_to :user

Posted in Comments With Polymorphic Associations Discussion

I have belongs_to :user in my Comment model

Posted in Comments With Polymorphic Associations Discussion

How can I get all of the users that have commented? What I would like is to be able to:

@post.commenters.each do |u|
something here...
end

Posted in Mailboxer Gem

I don't know yet :) I was just doing a little research before I spend time working on it and your vid suggests using the latest from GitHub. When I checked the Github repo I checked out the latest commit messages first.

Posted in Mailboxer Gem

I want to implement messaging in my app and I see that the most recent commits to the mailboxes gem say it no longer works in newer Rails versions. If it's not still relevant, then is there a new gem I should be looking at?

Posted in In-App Messages Between Users Discussion

Is this gem still relevant? I am implementing messaging in my app and I see that the most recent commits on GitHub say the gem no longer works with newer Rails?