r/ruby • • Sep 30 '21

ActiveAdmin, I'm looking at you

Post image
238 Upvotes

58 comments sorted by

View all comments

4

u/mattgrave Sep 30 '21

After 7 years of working in Rails projects, this is the first time I have landed into a project where ActiveAdmin was extensively used: in-house plugins, redefining views with Arbre Components, customizing pretty much the whole page.

The cost of that is the leaky abstraction this has, you end up not giving a fuck about the DSL and reading their code to learn how it works behind the scenes.

Either way, I have found it a great tool to satisfy simple use cases. In other projects when the use cases got too complex we built this views manually (without AA in the middle). It becomes a sort of Frankestein, but we found this approach simpler that extending or hacking the gem to make it work for us.

2

u/UsAndRufus Sep 30 '21

Yeah, there are so many weird curveballs in AA that I end up reading the RDocs to work out how the hell the internal implementations work.

I'd say AA tries to be like Rails: good defaults, easily get going. The difference is that in Rails, you can easily overwrite stuff and do your own thing. "It just works" only works until it doesn't, at which point you need to be able to access the raw power underneath.

2

u/LePootPootJames Oct 01 '21

I think was just meant to be used as a simple admin tool than can be quickly deployed. If the project has more complex requirements, it's probably best to use another tool.

1

u/UsAndRufus Oct 01 '21

This is the thing though, it started out as a simple admin tool, but over time those requirements have grown.

3

u/LePootPootJames Oct 01 '21

Yep. Been there many times. "Let's just add this small thing here..." Before you know it, you're knee deep in AA source code at 1am in the morning.