Re: Composite Key

Bill Lazar
Thu, 13 Oct 2005 22:03:57 -0000

Háber János <boci@...> writes:

> I want to create  a multi language table because
> AR not support composite primary keys...
>
> Now I have 2 table words with one column (id)
> and localized_word with lang_id, word_id ant the localized text.

Probably "Using Gettext To Translate Your Rails Application"
(http://manuals.rubyonrails.com/read/book/16) is a good place to look for the
Rails-normal way of handling this common issue.