RailsCasts Pro episodes are now free!

Learn more or hide this

Brunno dos Santos's Profile

GitHub User: squiter85

Site: www.abstraindo.com

Comments by Brunno dos Santos

Avatar

Hey guys, how can I get the articles using comment object?

Somethin like these:

ruby
comment = Comment.all.first
comment.article

supposing the first comment has a comentable_type as article.