I have good this cool challenge from my boss on developing a very simple
cms-like system to publish articles within. The caveat is that he wants
to have multi-lingual content.
At first I thought RoR would be perfect for the assignment but right now
I’m not so sure.
My first attempt involved creating a table for each model/languagde like
but then I will dynamically need to change the used table per request.
Seems like something that will slow down the app quite a bit.
Then I thought I could create the primary key in the table like a joined
key of the id field and language so I would have these ids:
But ActiveRecord doesn’t support multiple columns as primary key.
So right now I could some new idea or thought cause I’m sure RoR can do
everything - it’s only a matter on finding out how to do it