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
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
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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.