Questions tagged [globalize3]

Globalize3 is a popular Ruby on Rails extension that aids development of the global-ready web applications.

Globalize3 is a popular Ruby on Rails extension that aids development of the global-ready web applications.

Globalize3 is the successor of Globalize for Rails and is targeted at ActiveRecord version 3.x. It is compatible with and builds on the new I18n API in Ruby on Rails and adds model translations to ActiveRecord.

Globalize3 is much more lightweight and compatible than its predecessor. Model translations in Globalize3 use default ActiveRecord features and no longer limit any ActiveRecord functionality.

83 questions
0
votes
1 answer

Rails `update_attributes` Undefined method `first` for nil:NilClass

I'm trying to use update_attributes on a record, but it fails and I can't figure out why, I must be missing something obvious as I've used that method plenty of times. I'm trying to seed data for a model that uses Globalize3 for its name…
mbillard
  • 38,386
  • 18
  • 74
  • 98
0
votes
1 answer

globalize3 translating gem: What do I do about attributes that don't need translation (in writing migration)?

The github page for the globalize3 gem, https://github.com/svenfuchs/globalize3, clearly outlines how to prep a model's migration with string and text attributes that you would want multiple translations of. eg: class CreatePosts <…
jay
  • 12,066
  • 16
  • 64
  • 103
0
votes
1 answer

How to seed a model (using the seed-fu gem) that has been translated using the globalize3 gem (Rails)

In a Ruby on Rails app, how would one seed a model (using the seed-fu gem) that has been translated using the globalize3 gem? I tried seeding both the table and translated table with the code below, but it didn't work. fixtures: products.rb …
diasks2
  • 2,033
  • 2
  • 36
  • 61
0
votes
1 answer

Can you implement custom fallbacks for Globalize3?

I'd like to have some custome fallbacks for Globalize3 on Rails. I know you can set config.i18n.fallbacks = true and have untranslated text fallback to its default locale, but I would rather have something that would indicate it untranslated,…
Saifis
  • 2,197
  • 1
  • 22
  • 36
0
votes
1 answer

Using dragonfly with globalize

I'm trying to i18n the image_uid attribute in my model so I can have different images with different languages. I'm using globalize3 and dragonfly. The problem is that is not working at all. It usually uploads the spanish image (which is the default…
Víctor
  • 637
  • 2
  • 7
  • 14
0
votes
1 answer

Annotating Rails models that have Globalize3 translation tables

Is it possible to use the annotate (2.4.1.beta) gem to output globalize3 (0.2.0) translated properties in the models that they translate? If I have a Post creation migration generated like so class CreatePosts < ActiveRecord::Migration def up …
0
votes
1 answer

How to improve setting and getting temp variables around a block of code?

I am using Ruby on Rails v3.2.2 and globalize3 v0.2.0 ruby-gems. Since I would like to update translation data for an object (so to store proper data by using globalize3) I am using the following code in my controller file: # Note how I set locale…
Backo
  • 18,291
  • 27
  • 103
  • 170
0
votes
1 answer

Globalize3: "Mysql2::Error: Unknown database" when running the 'rake db:seed' task

I am using rails-3.2.2, i18n-0.6.0 and globalize3-0.2.0 ruby-gems. I installed and correctly run Globalized for a my class named Article. However, when I run the rake db:seed task in the Terminal window I get the following error: $ rake db:seed rake…
user502052
  • 14,803
  • 30
  • 109
  • 188
1 2 3 4 5
6