89

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 go with. I would need it to support model associations and file uploads abilities.

Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
erickreutz
  • 2,779
  • 3
  • 21
  • 18
  • 1
    I have also tried both gems, but cost me a lot of work to customize them. I am now using [admin_interface](https://github.com/joost/admin_interface), try it, maybe it is you are looking for. – Benito Anagua Mar 14 '12 at 12:27
  • 14
    RailsAdmin and ActiveAdmin serve different purposes - RailsAdmin is intended to provide an admin UI that usable out-of-the-box with little or no manual tweaking, whereas ActiveAdmin is more or less a scaffold (or a framework) for building admin interfaces. Generally you can build more flexible UIs with ActiveAdmin, but this require more effort on your part. My suggestion to Rails devs is always the same - try out RailsAdmin first and if it's not good enough for you develop a custom UI with AA - http://batsov.com/articles/2011/11/20/admin-interfaces-for-rails-apps-railsadmin-vs-activeadmin/ – Bozhidar Batsov Mar 14 '12 at 15:15
  • 41
    This was a very constructive question and set of answers. Really appreciated thoughts from both sides. Sad to see so many useful questions such as this closed. – ylluminate Sep 07 '12 at 18:07
  • 2
    To expand on Bozhidar's answer above, have a long think about how customised you imagine your admin area to be. I've wasted almost a week of work and had to scrap my rails_admin section because creating custom controllers, actions, and views is grueling. I've since moved over to active_admin and have much more control! Don't make a similar mistake. – Damien Roche Mar 21 '13 at 14:38

3 Answers3

33

I vote for rails_admin. I like its looks and the fact that out of the box all the models are available for administration. The history feature is quite useful too.

Any project with Yehuda Katz as a mentor should be a safe bet.

Dogbert
  • 212,659
  • 41
  • 396
  • 397
Harish Shetty
  • 64,083
  • 21
  • 152
  • 198
  • Are there some feature comparisons available somewhere? Looks and default behavior matter less to me than what it supports with not too much work... – Daniel Oct 31 '11 at 17:38
17

I personally think the two could be merged, and have just raised the issue on both projects:

I think it would be great to take the best parts from both, and collaborate on the missing pieces.

ndbroadbent
  • 13,513
  • 3
  • 56
  • 85
  • 4
    This is not a good idea at all. Those admins are serving different purposes. Did you try both of them for real projects? – fro_oo Jan 20 '12 at 10:57
  • 6
    I understand now that RailsAdmin is an automatic admin UI, while ActiveAdmin is an admin scaffold. I love ActiveAdmin's flexibility because of this approach, but it's missing RailsAdmin's model and association detection, and the awesome automatic forms. So I would be really happy if RailsAdmin was merged into ActiveAdmin to produce an extensible, yet automatic-by-default interface. – ndbroadbent Nov 29 '12 at 07:27
  • Good thinking. I agree! – Abram Apr 19 '13 at 05:23
14

I think it's really a matter of personal preference. More people are using rails_admin[*], but I prefer active_admin.

The reasons I chose ActiveAdmin were predominantly that it was developed with assumptions that I would make myself: using gems like devise and inherited_resources, and using a nice form builder (formtastic, though I would have chosen simple_form).

I actually prefer that not all models are exposed to the admin by default, though rails_admin supports that with 'config.included_models'.

[*] Watches/forks on https://github.com/gregbell/active_admin vs https://github.com/sferik/rails_admin - though the gap is closing.

Michael Hellein
  • 4,378
  • 1
  • 25
  • 21
  • 1
    I don't like it exacly for that reason. It only works with old version of the gems: s.add_dependency("formtastic", "< 2.0.0") s.add_dependency("inherited_resources", "< 1.3.0") – montrealmike Oct 04 '11 at 13:34
  • That's no longer the case with Formtastic - see https://github.com/gregbell/active_admin/blob/master/activeadmin.gemspec "formtastic", ">= 2.0.0" Inherited resources is still < 1.3.0, sadly. This probably isn't terribly difficult to change and make a pull request, though. – Michael Hellein Oct 17 '11 at 14:00
  • 2
    Oh, nice! ActiveAdmin is just about even with RailsAdmin on github. Watchers/forks: 2474/505 - 2767/557. – Michael Hellein Feb 08 '12 at 18:49
  • The most important disadvantage of ActiveAdmin is nota bene Formtastic. In some of my apps I used simple_form and it's nearly impossible to get them work along when you have custom inputs. – Hauleth Feb 13 '13 at 08:11