I have an article and category.
An article belongs to a category.
A category has many articles.
I want to find all articles in the “programming” category.
I have tried:
prog_articles = Article.find(:all, :conditions => [“category = ?”,
I know this is wrong because the error message reports an unknown column
on the article table (makes sense because this is a join).
What I do not understand is how to represent the join accurately?
I have scanned AWDR and not found an answer yet.
Thank you for any help.