April 20, 2015 Patch
For Rails 4 (according to the official github page ) use either master:
gem 'activeadmin', github: 'activeadmin'
Or rubigems:
gem 'activeadmin', '~> 1.0.0.pre1'
February 14, 2015 Patch
For Rails 4 (according to the official github page ) use:
gem 'activeadmin', github: 'activeadmin'
September 4, 2014 Patch
For Rails 4.0 and 4.1 (according to the official github page ) use:
gem 'activeadmin', github: 'activeadmin'
April 24, 2014 Patch
For Rails 4.1 and 4.0 use the wizard:
gem 'activeadmin', github: 'gregbell/active_admin'
April 13, 2014 Patch
For Rails 4.1, use the wizard 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 the wizard and you should be fine:
gem 'activeadmin', github: 'gregbell/active_admin'
Note. The problem with adding comments to the index page in Rails 4.1. This issue is tracked here .
September 29, 2013 update
Rails 4 fork has been merged with the wizard. Now all you have to do is specify:
gem 'activeadmin', github: 'gregbell/active_admin'
August 28, 2013 Updated Answer
It was possible to create a new rails 4 application and work with AA using only:
gem 'activeadmin', github: 'gregbell/active_admin', branch: 'rails4'
Please ignore the older answer. Just add this line to the new 4 app Gemfile rail, run bundle install , run rails g active_admin: install , run rake db: migrate run bundle exec rails s , go to / admin and log in using admin@example.com/password and you are good to go! See ActiveAdmin Documentation for more details .
June 30, 2013 Updated Answer
Significant progress has been made in obtaining ActiveAdmin and gems, it depends on the readiness for Rails 4. Use the following gemfile settings and do not take into account the bit regarding lowering 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 activate ActiveAdmin in my Rails 4.0.0.rc1 / JRuby / Puma application and work on Heroku.
After checking the following links from ActiveXmin github:
Re: Problems with Rails 4 - Problem No. 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'
from:
gem 'jquery-rails', '2.3.0'
and bundle install and run rails generate active_admin:install to install.
Start the server, go to root_url / admin and you will see the administrator login.