I’ve been playing around with the Globalize plugin for some days now
but I can’t seem to make it work properly with my models. I’m currently
using Postgres 8.0 for the database and needed to make some
modifications with my migration file that was posted by Jake Morrison in
the Globalize wiki…
… so that I can successfully create the DB schema.
Now I tried to follow the examples in the wiki when using models but
it seems that my data is not being stored in the globalize_translations
table. Anyway here is a sample of my code.
class ApplicationController < ActionController::Base
class Trial < ActiveRecord::Base
class TrialController < ApplicationController
Trial.create(:name => ‘One’)
trial = Trial.find(1)
trial.name = ‘Uno’
When running the app I get this error:
RuntimeError: ERROR C42601 Msyntax error at or near “WHERE” P20
Fscan.l L639 Ryyerror: UPDATE trials SET WHERE id = 1
Looking at it closely, it seems that on the intiall save on the
database, no data is being saved on the globalize_translation table so
when I try to update the data from my trials table no value is being
I know that I have configured the app properly because data is being
passed to the globalized_translation folder when I do “foo”.t but I
really can’t make it work with my models.
Do you guys know how to fix this? I would really appreciate if you can
help me fix this problem.
Thanks a lot,