Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Comparability Issue rails 4 beta, ruby 2.0.0, mongoid

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.....

like image 711
Zeeshan Avatar asked Mar 19 '13 23:03

Zeeshan


1 Answers

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

gem 'mongoid', git: 'https://github.com/mongoid/mongoid.git' 
like image 60
kakoni Avatar answered Oct 15 '22 05:10

kakoni