Displaying 1 result from an estimated 1 matches for "productformat".
Did you mean:
product_format
2006 May 19
2
Problems with belongs_to table joins
...ce, :cost_price
has_and_belongs_to_many :artists
has_and_belongs_to_many :labels
has_and_belongs_to_many :genres
belongs_to :product_formats
end
create table product_formats (
id int not null auto_increment,
format varchar(30),
primary key(id)
);
class ProductFormat < ActiveRecord::Base
end
I have successfully created many to many table joins and they are
working fine. But alas I can quite stumped on how to get a one to many
join working ok.
I would just like to list out the products and (where the type is
specified their type)
def testlist
@pro...