gem globalize3 on rails 4

804 Views Asked by At

Someon are using globalize3 with rails4. How you configure it?

i tryed to install, on my Gemfile:

gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4'

but i have these errors:

Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    globalize3 (>= 0) ruby depends on
      railties (~> 3.0) ruby

    coffee-rails (~> 4.0.0) ruby depends on
      railties (4.0.0)

Bundler could not find compatible versions for gem "rails":
  In Gemfile:
    globalize3 (>= 0) ruby depends on
      rails (~> 3) ruby

    rails (4.0.0)

Bundler could not find compatible versions for gem "actionpack":
  In Gemfile:
    rails (= 4.0.0) ruby depends on
      actionpack (= 4.0.0) ruby

    simple_form (~> 3.0.0.rc) ruby depends on
      actionpack (4.0.0.rc1)
4

There are 4 best solutions below

1
On

Try this use these 2 lines at your Gemfile:

gem 'paper_trail', github: 'airblade/paper_trail', branch: 'rails4'
gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4', ref: 'ffb5c771b9'
0
On

This worked for me:

gem 'globalize', '~> 4.0.2'

Please check on the latest instructions here:

https://github.com/globalize/globalize#installation

0
On

The globalize3 gem has been renamed globalize and major version numbers now correspond to the corresponding version of ActiveRecord (3.x for AR3 and 4.x for AR4).

So all you need to do is put this in your Gemfile, and you should not get any conflict:

gem 'globalize', '~> 4.0.0.alpha.2'

See also the github repository for more details.

0
On

Use this. Paper_trail merged rails4 into master branch.

gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4'
gem 'paper_trail', github: 'airblade/paper_trail', branch: 'master'