Active admin install with Rails 4

I got this error when installing an active admin in Rails 4

Bundler could not find compatible versions for gem "actionpack": In Gemfile: meta_search (>= 1.1.0.pre) ruby depends on actionpack (~> 3.1.0.alpha) ruby rails (= 4.0.0.rc1) ruby depends on actionpack (4.0.0.rc1) 

I follow this instruction: http://www.activeadmin.info/docs/documentation.html

Someone can help.

+83
ruby-on-rails-4 activeadmin
May 7 '13 at 18:49
source share
5 answers

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.

+227
May 29, '13 at 4:12
source share

January 11, 2016 Updated Answer

ActiveAdmin now supports Rails 4 :

Version 1.0.0, full support for Rails 4):

gem 'activeadmin', github: 'activeadmin'




0.6 Stable version (may not support Rails 4):

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

+30
Jul 31 '13 at 8:15
source share

I switched to Ubuntu and this solved the problem that I was facing. For some reason, Windows is suffocating, trying to get a gem that isn't in the Ruby source.

0
Sep 05 '13 at 15:59
source share

Thanks for the help, Marc and Oto Brglez . A quick update to implement the rails 4. You do not need to use the "0-6-stable" branch (that is, the current branch today), instead you can just use the main branch, as indicated in the gregbell github documentation. https://github.com/gregbell/active_admin

-one
Mar 02 '14 at 23:12
source share

Just edit your gemfile . That's all you need for ActiveAdmin 1.0.0 , works with Rails 4.1




Add the following lines:

 gem 'activeadmin', github: 'gregbell/active_admin' # ActiveAdmin backend framework for Rails administration interface gem 'polyamorous', github: 'activerecord-hackery/polyamorous' # Require for ActiveAdmin to work with Rails 4.1 gem 'ransack', github: 'activerecord-hackery/ransack' # Require for ActiveAdmin to work with Rails 4.1 gem 'formtastic', github: 'justinfrench/formtastic' # Require for ActiveAdmin to work with Rails 4.1 gem 'devise' # Authentication 
-one
May 21 '14 at 14:57
source share



All Articles