Questions tagged [activeadmin]

Active Admin is a Ruby on Rails plugin for generating administration style interfaces. It abstracts common business application patterns to make it simple for developers to implement beautiful and elegant interfaces with very little effort.

Active Admin is a Ruby on Rails plugin for generating administration style interfaces. It abstracts common business application patterns to make it simple for developers to implement beautiful and elegant interfaces with very little effort.

Documentation can be found at https://activeadmin.info/.

3600 questions
89
votes
3 answers

Rails Admin vs. ActiveAdmin

I've been looking into some rails admin plugins and came across these: https://github.com/gregbell/active_admin https://github.com/sferik/rails_admin https://github.com/thoughtbot/administrate (EDIT: added later) Any suggestions as to which one to…
81
votes
5 answers

Active admin install with Rails 4

I got this error when installing active admin on 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…
Md Sirajus Salayhin
  • 4,974
  • 5
  • 37
  • 46
76
votes
2 answers

ActiveAdmin with has_many problem; undefined method 'new_record?'

I'm trying to customise a ActiveAdmin form for a Recipe model that has a has_many relationship with Step. class Recipe < ActiveRecord::Base has_many :steps end class Step < ActiveRecord::Base acts_as_list :scope => :recipe belongs_to…
nickpellant
  • 1,046
  • 1
  • 7
  • 9
67
votes
10 answers

Rails 3. How to add a helper that ActiveAdmin will use?

I'm creating a helper to be used by Formtastic but I get the undefined local variable or method error. I don't know where to put it so it can work. I already tried in the application_helper.rb and in app/helpers/active_admin/view_helpers.rb
leonel
  • 10,106
  • 21
  • 85
  • 129
66
votes
4 answers

Rails: activeadmin overriding create action

I have an activeadmin resource which has a belongs_to :user relationship. When I create a new Instance of the model in active admin, I want to associate the currently logged in user as the user who created the instance (pretty standard stuff I'd…
patrickdavey
  • 1,966
  • 2
  • 18
  • 25
56
votes
7 answers

How to use ActiveAdmin on models using has_many through association?

I am using ActiveAdmin gem in my project. I have 2 models using has_many through association. The database schema looks exactly the same as the example in RailsGuide.…
53
votes
4 answers

Rails 3 - Can Active_admin use an existing user model?

Can Active Admin use my current Devise user model? It already has a column named admin, and if it's true, I'd like to bypass the Active admin login, when going to /admin. Is this possible? Current routes: #Active…
Frexuz
  • 4,732
  • 2
  • 37
  • 54
51
votes
6 answers

ArgumentError: A copy of ApplicationController has been removed from the module tree but is still active

I am using ActiveAdmin (with customized gemset for Rails 4) with Rails 4.0.0.rc2. Application also has custom-built authorization code based on railscasts #385 and #386. When I change something in a ActiveAdmin resource file and try to refresh the…
Subhash
  • 3,121
  • 1
  • 19
  • 25
49
votes
5 answers

How to remove the delete option form activeAdmin?

in rails gem active admin I want to remove the delete option form the default_actions while I still need the edit and show action , is there any way to do it ?
Kareem Hashem
  • 1,057
  • 1
  • 9
  • 25
48
votes
4 answers

Adding New Admins to Active Admin

I am using devise for my users. I recently installed the rails Active Admin gem, everything is working beautifully. However I can't figure out how to add a new admin users. I can see that active admin created an admin_user table in the db with a…
alik
  • 3,820
  • 9
  • 41
  • 55
47
votes
5 answers

Active Admin: Customize only new form

I'm using Active Admin to provide an admin to some models. I need to provide a customized new form for one of them, but leave the edit form as the default provided by Active Admin. Here's what I have. It works in that it is giving me the new form I…
Michael Irwin
  • 3,119
  • 5
  • 24
  • 40
43
votes
6 answers

rails active admin deployment : couldn't find file 'jquery-ui'

when trying to deploy with capistrano, when capistrano use command bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile I have this error couldn't find file 'jquery-ui' (in…
user2016483
  • 583
  • 1
  • 5
  • 13
42
votes
8 answers

How to add custom filter to Active Admin?

Active Admin allows me to define filters that are displayed on the index page like so: ActiveAdmin.register Promo do filter :name filter :address filter :city filter :state filter :zip end I would like to combine all the fields above…
dkobozev
  • 2,265
  • 2
  • 21
  • 21
42
votes
2 answers

Rails Activeadmin - custom association select box

In my Rails application, I have the following model: class Idea < ActiveRecord::Base belongs_to :user end class User < ActiveRecord::Base has_many :ideas end I am creating ActiveAdmin CRUD for my Idea model with the custom form that looks…
alexs333
  • 12,143
  • 11
  • 51
  • 89
42
votes
6 answers

How to get ActiveAdmin to work with Strong Parameters?

Update: this question was asked before there was a solution for it already in ActiveAdmin. As Joseph states, the ActiveAdmin documentation now contains this information, but the answers here are provided for those working with older versions of…
1
2 3
99 100