Displaying 1 result from an estimated 1 matches for "treatmentcategori".
Did you mean:
treatmentcategory
2007 Aug 08
1
dont know how to use :include
Hi
i have two tables treatmentcategories and treatmentitems. each
category has many items.
i have specified
has_many :treatmentitems in treatmentcategories.rb model and
belongs_to :treatmentcategories in treatmentitems.rb model
in one of my def i am trying to display category with each item. So i
used
@cats = Treatmentcategories.fin...