Displaying 1 result from an estimated 1 matches for "categoriesproductcategory".
2007 Sep 05
8
Hi..Guys new plugin again
...as_many :lines, :order => :position
The plugin also supports the creation of has_and_belongs_to_many
associations.
For example, given the tables product_product_categories with foreign-
keys to both the product and product_categories tables, the plugin
creates:
Product.has_and_belongs_to_many :categoriesProductCategory.has_and_belongs_to_many :products
And finally, notice that in one of the previous examples, the
association name used for the Order.has_many is :lines and
not :order_lines. More specifically, the plugin removes the prefix
from has_many and has_one associations if the the name of parent class
forms...