= 1.1.0.pre' gems to my project but I got error like this Bundler could not find" /> = 1.1.0.pre' gems to my project but I got error like this Bundler could not find" /> = 1.1.0.pre' gems to my project but I got error like this Bundler could not find"/>

Rails 4 I can't install gems

1.3k views Asked by At

Hello I want to install these gem 'activeadmin', gem "meta_search", '>= 1.1.0.pre' gems to my project but I got error like this

 Bundler could not find compatible versions for gem "actionpack":
  In snapshot (Gemfile.lock):
    actionpack (4.0.2)

  In Gemfile:
    meta_search (>= 1.1.0.pre) ruby depends on
      actionpack (~> 3.1.0.alpha) ruby

How I can solve these problems

4

There are 4 answers

5
Yule On BEST ANSWER

Meta_search doesn't support rails 4. So you're getting a conflict.

Suggest you have a look at Ransack instead, which is basically a ground up rewrite of meta-search. If you're using rails 3, then you need to specify this in your Gemfile.

1
Bharat soni On

Active Admin has a few other dependencies as well. Check this out Active Admin install with Rails 4.

Copy and paste all the gems (in the top answer) to your gemfile and you should not have any issues running bundle.

0
khaled_gomaa On

just put "meta_search", '>= 1.1.0.pre' before gem 'activeadmin'
this should solve your problem

0
Murat KAYA On
 gem 'devise',              github: 'plataformatec/devise'
gem 'responders',          github: 'plataformatec/responders'
gem 'inherited_resources', github: 'josevalim/inherited_resources'
gem 'ransack',             github: 'ernie/ransack'
gem 'activeadmin',         github: 'gregbell/active_admin'
gem 'formtastic',          github: 'justinfrench/formtastic'

it's worked