[Rails] Beginner issue - databases reference

2011-09-21 Thread Justin D.
Hi, I have teo databases. One is called products, the other categories. Basically, I have products and they are linked to a category. Scheme : products : name:string category:references (?) comments:text categories : name:string place_to_recycle_product:string comments:text I don't know how

[Rails] Re: Beginner issue - databases reference

2011-09-21 Thread Justin D.
Well... I've read some tutorials and basically, what I had to do was to create a database with the command scaffold. I had to choose :references as the type of one of my table entry... But the thing is I can't figure which entry to reference to... -- Posted via http://www.ruby-forum.com/. --