Comparability Issue rails 4 beta, ruby 2.0.0, mongoid
Asked Answered
A

1

31

I am creating a test application using following versions of rails, ruby and mongoid.

rails 4 beta
ruby 2.0.0
mongoid 3.1.2

My GemFile looks like this

gem 'rails', '4.0.0.beta1'
ruby '2.0.0'
gem 'mongoid', '~> 3.1.2'
gem 'bson_ext'

But when i run bundle on console I get following error.

Bundler could not find compatible versions for gem "activemodel":

Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activemodel":
  In Gemfile:
    mongoid (~> 3.1.2) ruby depends on
      activemodel (~> 3.2) ruby

    rails (= 4.0.0.beta1) ruby depends on
      activemodel (4.0.0.beta1)

Can anyone help? Please.....

Astto answered 19/3, 2013 at 23:47 Comment(0)
L
73

Use mongoid master from github, that has support for rails 4.0.

gem 'mongoid', git: 'https://github.com/mongoid/mongoid.git'
Lessen answered 26/3, 2013 at 9:54 Comment(2)
fyi you can also specify github repos in your gemfile as gem 'mongoid', github: 'mongoid/mongoid'European
Hopefully, mongoid releases the support for rails 4 soonNetty

© 2022 - 2024 — McMap. All rights reserved.