Search code examples
rubyruby-on-rails-3internationalizationmodelglobalize2

Globalize2 problems, undefined method `translates' for?


I've set up Globalize2 on a rails app however I'm getting the following error when I put translates on the model:

undefined method `translates' for

Is anyone else getting this error? It's on rails 3 by the way.


Solution

  • You will have to use globalize3 if you run rails3. You can download it from https://github.com/svenfuchs/globalize3 or by adding

    gem "globalize3"

    to you Gemfile and running bundle install.