RailsCasts Pro episodes are now free!

Learn more or hide this

noctivityinc's Profile

GitHub User: noctivityinc

Comments by


Did I miss something or is there a reason why you can't simply use the model's user for the owner?

In the comment model isn't the comment.user association the owner? Does the gem allow you to simply say

 tracked owner: self.user 

or the like? Seems like accessing the controller is over-kill in most cases.


How can you fix n + 1 queries on a has :through association?