문제

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

도움이 되었습니까?

해결책

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.

다른 팁

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.

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

 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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top