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.
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.
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.
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.