On 14 July 2011 15:12, joanne ta <[email protected]> wrote:
>> > class Language < ActiveRecord::Base
>> >   belongs_to :name, :class_name => "Phrase", :foreign_key => "name"
>> >   belongs_to :phrase
>> >   has_many :users
>> > end
>> > ~ language table
>> > id
>> > name
>
> is integer
>>
>> > directions
>> > language_name

PS Where's your phrase_id in the language table?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to