Displaying 1 result from an estimated 1 matches for "articles_categori".
Did you mean:
articles_categories
2006 Mar 12
11
HABTM selection conditions
Hi,
I am currently trying to learn RoR and there is something I cannot
figure out.
I have two models: Article and Category, that are HABTM-linked.
Everything works fine if I want to select all articles corresponding to
a category, with something like
@articles = @category.find(@params[:id]).articles
However, I have a ''published'' field in my ''articles''