ruby-on-railsrubyruby-on-rails-4rubygemsmeta-search

Rails 4 I can't install gems


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


Solution

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