Rails 4: activeadmin error message - Bundler could not find compatible versions for gem "actionpack"

I want to use activeadmin for my rails project, so I added it to my gemfile .

 gem 'activeadmin'

and updated the package, but received this error message -

Resolving dependencies...
Bundler could not find compatible versions for gem "actionpack":
  In Gemfile:
    activeadmin (>= 0) ruby depends on
      actionpack (~> 3.0.0.rc2) ruby

    rails (= 4.0.0) ruby depends on
      actionpack (4.0.0)

I uploaded the project to github; this is a gemfile link - https://github.com/Mashpy/esl/blob/master/Gemfile

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'

# Use sqlite3 as the database for Active Record
gem 'sqlite3'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'

#gem
 gem 'activeadmin'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

What am I doing wrong, what prevents me from adding activeadmin?

+4
source share
3 answers

Active Admin also has several other dependencies. Check out Active Admin install with Rails 4 .

( ) gemfile, .

+5

-

bundle update

bundle install

.

+4

I think you should update these gems:

sass-rails ~> 3.2.3
coffee-rails ~> 3.2.1

References:

http://guides.rubyonrails.org/3_2_release_notes.html

0
source

All Articles