Displaying 2 results from an estimated 2 matches for "article_category_id".
2006 Feb 11
1
Naming confusion
Hi,
I have a database setup with 2 tables and a simple one-to-many
relationship where
article_categories have many articles.
In the models ruby has created for me, I''ve added "belongs_to
:article_category" to the Article class and "has_many :articles" to
the ArticleCategory class.
Everything seems fine until I try to reference the category from the
article. In my
2006 Jan 19
4
Controller / Model confusion
I have created a product, with two controllers and two models, one for
categories and one for articles. In my models directory, I have
article.rb and articles.rb and seem to have code that relies on both of
these!
I am unable to get any validation working because of this (whichever
model I put the code in, it doesn''t load it)
Should I just rip it all apart and start again?
--