Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails 4 and active admin

Trying to install ActiveAdmin on a Rails 4 project, and am getting this error:

Bundler could not find compatible versions for gem "activerecord":
  In Gemfile:
    activeadmin (>= 0) ruby depends on
      activerecord (~> 3.0) ruby

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

I've followed this example: Active admin install with Rails 4 and added activeadmin to the gemfile like so:

gem 'activeadmin', github: 'gregbell/active_admin', branch: 'rails4'

But still no go; same error.

like image 343
grimmwerks Avatar asked Feb 26 '26 02:02

grimmwerks


1 Answers

Ah my mistake; I thought I didn't have to include all the others since I wasn't using them; but it's not ActiveAdmin that is having a problem with ActiveRecord but something that AA depends on:

https://github.com/gregbell/active_admin/issues/2322

like image 54
grimmwerks Avatar answered Mar 01 '26 06:03

grimmwerks