sorry, I had a typo with the "attributes" chain, and I found that you pluralize with an "s" all the columns name ;)
thank you for your workaround! e. El miércoles, 22 de febrero de 2012 16:13:05 UTC-3, Ignacio Huerta escribió: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I'm a bit puzzled with a translation problem: switching languages > doesn't work in production only for enum_string fields. > > We are working on a Rails 3.0.10 + Hobo 1.3.0 app. It's a Car Rental > site, and we need it to work in English and Spanish. Right now > translations are working except for a enum_string field, where we have > found a weird behaviour when switching languages: > > - - Language switches correctly in development mode, including the > enum_string field > - - Language switches correctly in production mode, *except* for the > enum_string field, which stays in the first language loaded (sometimes > spanish, sometimes english, depending on the param provided in the > first petition). > > I have reproduced this behaviour in a clean one table Hobo app, and we > are switching languages using the official Rails guide method, so I > think that's not the problem. I believe that as the problem is in the > fix commented last year: > > http://groups.google.com/group/hobousers/browse_thread/thread/484dc97b1e7c80e6?pli=1 > : > > Region = HoboFields::Types::EnumString.for(:ab, :bc, :name => > "Region") > > Somehow the enum_string is being cached and not changing languages. > Has anybody else seen this behaviour? Any tip on where to start digging? > > Regards, > Ignacio > > - -- > Ignacio Huerta Arteche > http://www.ihuerta.net > Tel�fono: 0034 645 70 77 35 > Email realizado con software libre > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk9FPj4ACgkQBPlUJ6RHaORIDgCdGIk7h/zxyVBJ6MGEVxt357a1 > CxcAn1DYP0n2VRctcuAryxXD8ws7etTM > =+tMc > -----END PGP SIGNATURE----- > > El miércoles, 22 de febrero de 2012 16:13:05 UTC-3, Ignacio Huerta escribió: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I'm a bit puzzled with a translation problem: switching languages > doesn't work in production only for enum_string fields. > > We are working on a Rails 3.0.10 + Hobo 1.3.0 app. It's a Car Rental > site, and we need it to work in English and Spanish. Right now > translations are working except for a enum_string field, where we have > found a weird behaviour when switching languages: > > - - Language switches correctly in development mode, including the > enum_string field > - - Language switches correctly in production mode, *except* for the > enum_string field, which stays in the first language loaded (sometimes > spanish, sometimes english, depending on the param provided in the > first petition). > > I have reproduced this behaviour in a clean one table Hobo app, and we > are switching languages using the official Rails guide method, so I > think that's not the problem. I believe that as the problem is in the > fix commented last year: > > http://groups.google.com/group/hobousers/browse_thread/thread/484dc97b1e7c80e6?pli=1 > : > > Region = HoboFields::Types::EnumString.for(:ab, :bc, :name => > "Region") > > Somehow the enum_string is being cached and not changing languages. > Has anybody else seen this behaviour? Any tip on where to start digging? > > Regards, > Ignacio > > - -- > Ignacio Huerta Arteche > http://www.ihuerta.net > Tel�fono: 0034 645 70 77 35 > Email realizado con software libre > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk9FPj4ACgkQBPlUJ6RHaORIDgCdGIk7h/zxyVBJ6MGEVxt357a1 > CxcAn1DYP0n2VRctcuAryxXD8ws7etTM > =+tMc > -----END PGP SIGNATURE----- > > El miércoles, 22 de febrero de 2012 16:13:05 UTC-3, Ignacio Huerta escribió: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I'm a bit puzzled with a translation problem: switching languages > doesn't work in production only for enum_string fields. > > We are working on a Rails 3.0.10 + Hobo 1.3.0 app. It's a Car Rental > site, and we need it to work in English and Spanish. Right now > translations are working except for a enum_string field, where we have > found a weird behaviour when switching languages: > > - - Language switches correctly in development mode, including the > enum_string field > - - Language switches correctly in production mode, *except* for the > enum_string field, which stays in the first language loaded (sometimes > spanish, sometimes english, depending on the param provided in the > first petition). > > I have reproduced this behaviour in a clean one table Hobo app, and we > are switching languages using the official Rails guide method, so I > think that's not the problem. I believe that as the problem is in the > fix commented last year: > > http://groups.google.com/group/hobousers/browse_thread/thread/484dc97b1e7c80e6?pli=1 > : > > Region = HoboFields::Types::EnumString.for(:ab, :bc, :name => > "Region") > > Somehow the enum_string is being cached and not changing languages. > Has anybody else seen this behaviour? Any tip on where to start digging? > > Regards, > Ignacio > > - -- > Ignacio Huerta Arteche > http://www.ihuerta.net > Tel�fono: 0034 645 70 77 35 > Email realizado con software libre > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk9FPj4ACgkQBPlUJ6RHaORIDgCdGIk7h/zxyVBJ6MGEVxt357a1 > CxcAn1DYP0n2VRctcuAryxXD8ws7etTM > =+tMc > -----END PGP SIGNATURE----- > > El miércoles, 22 de febrero de 2012 16:13:05 UTC-3, Ignacio Huerta escribió: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I'm a bit puzzled with a translation problem: switching languages > doesn't work in production only for enum_string fields. > > We are working on a Rails 3.0.10 + Hobo 1.3.0 app. It's a Car Rental > site, and we need it to work in English and Spanish. Right now > translations are working except for a enum_string field, where we have > found a weird behaviour when switching languages: > > - - Language switches correctly in development mode, including the > enum_string field > - - Language switches correctly in production mode, *except* for the > enum_string field, which stays in the first language loaded (sometimes > spanish, sometimes english, depending on the param provided in the > first petition). > > I have reproduced this behaviour in a clean one table Hobo app, and we > are switching languages using the official Rails guide method, so I > think that's not the problem. I believe that as the problem is in the > fix commented last year: > > http://groups.google.com/group/hobousers/browse_thread/thread/484dc97b1e7c80e6?pli=1 > : > > Region = HoboFields::Types::EnumString.for(:ab, :bc, :name => > "Region") > > Somehow the enum_string is being cached and not changing languages. > Has anybody else seen this behaviour? Any tip on where to start digging? > > Regards, > Ignacio > > - -- > Ignacio Huerta Arteche > http://www.ihuerta.net > Tel�fono: 0034 645 70 77 35 > Email realizado con software libre > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk9FPj4ACgkQBPlUJ6RHaORIDgCdGIk7h/zxyVBJ6MGEVxt357a1 > CxcAn1DYP0n2VRctcuAryxXD8ws7etTM > =+tMc > -----END PGP SIGNATURE----- > > El miércoles, 22 de febrero de 2012 16:13:05 UTC-3, Ignacio Huerta escribió: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I'm a bit puzzled with a translation problem: switching languages > doesn't work in production only for enum_string fields. > > We are working on a Rails 3.0.10 + Hobo 1.3.0 app. It's a Car Rental > site, and we need it to work in English and Spanish. Right now > translations are working except for a enum_string field, where we have > found a weird behaviour when switching languages: > > - - Language switches correctly in development mode, including the > enum_string field > - - Language switches correctly in production mode, *except* for the > enum_string field, which stays in the first language loaded (sometimes > spanish, sometimes english, depending on the param provided in the > first petition). > > I have reproduced this behaviour in a clean one table Hobo app, and we > are switching languages using the official Rails guide method, so I > think that's not the problem. I believe that as the problem is in the > fix commented last year: > > http://groups.google.com/group/hobousers/browse_thread/thread/484dc97b1e7c80e6?pli=1 > : > > Region = HoboFields::Types::EnumString.for(:ab, :bc, :name => > "Region") > > Somehow the enum_string is being cached and not changing languages. > Has anybody else seen this behaviour? Any tip on where to start digging? > > Regards, > Ignacio > > - -- > Ignacio Huerta Arteche > http://www.ihuerta.net > Tel�fono: 0034 645 70 77 35 > Email realizado con software libre > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk9FPj4ACgkQBPlUJ6RHaORIDgCdGIk7h/zxyVBJ6MGEVxt357a1 > CxcAn1DYP0n2VRctcuAryxXD8ws7etTM > =+tMc > -----END PGP SIGNATURE----- > > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/3TjOtgGOIN4J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
