Hello!
In my Rails app I have models that look something like this:
class Blog < ActiveRecord::Base
has_many :posts
end
class Post < ActiveRecord::Base
belongs_to :blog
end
class Comment < ActiveRecord::Base
belongs_to :commentable, :polymorphic => true
end
What I'm having problem with now is finding all comments under a specific blog. Can anyone see a solution to this?
Best regards, Erik