translate database fields with rails
        Posted  
        
            by fursie
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by fursie
        
        
        
        Published on 2010-03-19T15:45:11Z
        Indexed on 
            2010/03/19
            16:21 UTC
        
        
        Read the original article
        Hit count: 518
        
hi
I know about the built-in I18n in Rails, but how can I select a database field per locale?
My model structure is something like this:
title    #default (englisch)
title_de #(german)
title_it #(italian)
In my template I want to be able to write only
<%= @model.title %>
and should get the value in the right language.
Is there a plugin or a solution to use different fields per different locale settings with a structure like mine?
© Stack Overflow or respective owner