need some basic help with globalize2

2 views
Skip to first unread message

hydrozen

unread,
Nov 9, 2008, 1:34:29 PM11/9/08
to rails-i18n
Hi,

I have been playing around with globalize2 but it doesn't seem to work
right for me somehow and it got me scratching my head.
So I created a model which has a translatable field called "title".
When I save the model I do see the fields in the translations table...
but when I fetch that record using find title returns nil.

Here's an excerpt from a console session :

>> I18n.locale = :en
=> :en
>> Showcase.create(:title => ‘english’)
=> #
>> s = Showcase.find(3)
=> #
>> s.title
=> nil

What am I doing wrong?

Sven Fuchs

unread,
Nov 17, 2008, 2:00:21 PM11/17/08
to rails...@googlegroups.com
Hey hydrozen,

Nothing. Globalize was wrong about trying to save the Ruby Symbol
directly to the db in this case. I've fixed that: http://github.com/joshmh/globalize2/commit/d63e851d1a371e6a6583bc64867fb1b50c85c474

Thanks a lot for reporting this!

Reply all
Reply to author
Forward
0 new messages