Displaying 1 result from an estimated 1 matches for "createlanguagesproduct".
Did you mean:
createlanguagesproducts
2007 Jun 14
1
HABTM and acts_as_list
I don''t think this needs much explanation. Is what I''m trying to do
even possible?
class CreateLanguagesProducts < ActiveRecord::Migration
create_table languages_products do |t|
t.column :language_id, :integer
t.column :product_id, :integer
t.column :language_position, :integer
end
end
class Language < ActiveRecord::Base
acts_as_list :scope => :product
has_and_belongs_to_many :p...