Globalize2 and migrations

Posted by diegogs on Stack Overflow See other posts from Stack Overflow or by diegogs
Published on 2010-06-08T07:49:59Z Indexed on 2010/06/08 7:52 UTC
Read the original article Hit count: 314

Hi, I have used globalize2 to add i18n to an old site. There is already a lot of content in spanish, however it isn't stored in globalize2 tables. Is there a way to convert this content to globalize2 with a migration in rails?

The problem is I can't access the stored content:

>> Panel.first
=> #<Panel id: 1, name: "RT", description: "asd", proje....
>> Panel.first.name
=> nil
>> I18n.locale = nil
=> nil
>> Panel.first.name
=> nil

Any ideas?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby