Active admin install with Rails 4

Apr 20, 2015 update

For Rails 4 (according to the official github page) use either master:

gem 'activeadmin', github: 'activeadmin'

Or rubygems:

gem 'activeadmin', '~> 1.0.0.pre1'

Feb 14, 2015 update

For Rails 4 (according to the official github page) use:

gem 'activeadmin', github: 'activeadmin'

Sept 4, 2014 update

For Rails 4.0 and 4.1 (according to the official github page) use:

gem 'activeadmin', github: 'activeadmin'

April 24, 2014 update

For Rails 4.1 and 4.0 use master:

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

April 13, 2014 update

For Rails 4.1 use master and the following dependency branches:

gem 'activeadmin', github: 'gregbell/active_admin'
gem 'polyamorous', github: 'activerecord-hackery/polyamorous'
gem 'ransack', github: 'activerecord-hackery/ransack'
gem 'formtastic', github: 'justinfrench/formtastic'

For Rails 4.0.X just use master and you should be good to go:

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

Note: There's an issue with adding comments to the index page in Rails 4.1. This issue is being tracked here.

September 29, 2013 update

The Rails 4 branch has been merged into master. Now all you need to do is specify:

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

August 28, 2013 Updated answer

Was able to build a new rails 4 app up and running with AA just using:

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

Please disregard the older answer. Just add this line to your new rails 4 app Gemfile, run bundle install, run rails g active_admin:install, run rake db:migrate, run bundle exec rails s, go to /admin, and log in with [email protected]/password and you're good to go! See ActiveAdmin Documentation for more details.

June 30, 2013 Updated answer

Much progress has been made on getting ActiveAdmin and the gems it depends on ready for Rails 4. Please use the following gemfile settings and disregard the bit regarding downgrading jquery-rails to 2.3.0:

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', branch: 'rails4'
gem 'formtastic',          github: 'justinfrench/formtastic'

just bundle install (or bundle update, if necessary) and run rails generate active_admin:install (if necessary) to install


Original Answer

I used the following to get ActiveAdmin on my Rails 4.0.0.rc1/JRuby/Puma app up and running on Heroku.

After checking out the following links from the ActiveAdmin github:

Re: Rails 4 problems - Issue #1963

Rails 4 Hacks, Fixes - Pull Request #2120

I added the following to my gemfile:

gem 'devise',              github: 'plataformatec/devise',     branch: 'rails4'
gem 'responders',          github: 'plataformatec/responders'
gem 'inherited_resources', github: 'josevalim/inherited_resources'
gem 'ransack',             github: 'ernie/ransack'
gem 'activeadmin',         github: 'akashkamboj/active_admin', branch: 'rails4'
gem 'formtastic',          github: 'justinfrench/formtastic', branch: 'rails4beta'

replace:

gem 'jquery-rails', '3.0.0'

with:

gem 'jquery-rails', '2.3.0'

and bundle install and run the rails generate active_admin:install to install.

Fire up the server, go to root_url/admin and you should see the admin login.


January 11, 2016 Updated answer

ActiveAdmin has now Rails 4 full support :

1.0.0 Version, full support of Rails 4) :

gem 'activeadmin', github: 'activeadmin'


0.6 Stable version (may not properly support Rails 4) :

gem 'activeadmin', github: 'activeadmin', branch: '0-6-stable'