Postanowiłem dać szansę gemowi globalize, zapowiada się ciekawie. Niestety nie mogę zmusić gemu Populator do wyhenerowania danych.
Unit.populate 50 do |unit|
unit.name = Populator.words(1).titleize
unit.activated_at = Time.now
unit.set_translations("en"=>{"title"=> Populator.words(1).titleize, "abbr"=> Populator.words(1).titleize}, "pl"=>{"title"=> Populator.words(1).titleize, "abbr"=>Populator.words(1).titleize})
end
Zwraca błąd:
undefined method `set_translations' for #<Populator::Record:0x00000003dc8220>
Jest to w sumie logiczne, niestety nie mogę znaleźć przykładu Globalize + Populator.