Create a new db migration and name the table corresponding to the 2 models being linked, and write them alphabetically:
rails generation migration places_products place:references product:references
Rake the DB migration
Now, products and places can be linked to one another. Each product and/or place can have multiple (or none) of it's relation model.
I hope I understood your problem correctly. For more help, research "has and belongs to many" relationships in Rails. Or, basic relationships as well. Read up on those and let me know if you have anymore questions
Last edited by wesf90 (2012-03-06 18:26:06)
Remember to edit your topic title and add "[SOLVED]" if your question has been answered!Follow me!