search for: word_two

Displaying 1 result from an estimated 1 matches for "word_two".

Did you mean: word_t
2008 Feb 13
1
can a class have the association has_itself?
is it possible to implement a recursive foreign key association like that? i''m writing a vocab app, where i want the vocab table to have an id and two foreign keys, word1 and word2. the word table will have an id, a word-string, and a language i''m trying to do this as follows: class Vocab < ActiveRecord::Base belongs_to :word belongs_to :word class Word <