search for: r_id

Displaying 2 results from an estimated 2 matches for "r_id".

Did you mean: _id
2006 Jan 19
5
Multiple HABTM relationships with self ???
...HABTM won''t support multiple self-joins because the method names would get confused. Could I create additional controllers for the class, and then use the :class_name option to specify those controllers? SOrt of like so: class Recipe < 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&q...
2006 Jan 19
5
limits of has_and_belongs_to_many
I''m experimenting with Rails on the Recipes example first before I dive into applying it to my intended application. I''m exploring which will be more work: to rename all the primary id''s in the legacy database, or to work around the fact that the primary id''s are not called ''id'' within RoR instead. I''ve been successful in using a