views:

9

answers:

0

Hey I'm trying to build a rails 3 app with Mongoid (for MongoDB). What I'm now trying to do:


Languages:

id (automatically created, right?)

name (e.g. English)

code (e.g. en_US)

Languages_Texts:

id (see above...)

name (e.g. hello_world)

Translations:

id (see above...)

translation (e.g. Hello, world!)


I hope this database schema is understandable and not too bad. ;)

Now my problem is, that I don't know how to do this with a mongoid model in rails 3.

Anyone that could help me?

Thanks already!

Matthias