Displaying 1 result from an estimated 1 matches for "recipes_recipes2".
Did you mean:
recipes_recipes
2006 Jan 19
5
Multiple HABTM relationships with self ???
...< ActiveRecord::Base
set_primary_key "R_ID"
has_and_belongs_to_many :recipes, :join_table => "recipes_recipes",
:foreign_key => "R_ID", :association_foreign_key => "R_ID2"
has_and_belongs_to_many :recipes2, :join_table =>
"recipes_recipes2", :foreign_key => "R_ID", :association_foreign_key =>
"R_ID2"
has_and_belongs_to_many :recipes3, :join_table =>
"recipes_recipes3", :foreign_key => "R_ID", :association_foreign_key =>
"R_ID2"
end
Thanks!
--
Posted vi...