3 ms·
ActiveAdmin is actually pretty easy: > rails generate active_admin:resource [MyModelName]
by joshdotsmith 14y ago
ActiveAdmin is actually pretty easy:
> rails generate active_admin:resource [MyModelName]
- danso 14y agoOh yes, it's easy. I was just forgetting exactly (I haven't used it in awhile) what it built out for you upon that command and what opinionated pattern it might constrain you to.
- grncdr 14y agoNot very opinionated at all, your application controller must expose a method to authenticate a user, and another to get the current user (defaults to :current_user which works out-of-the-box with Devise). Both method names can be configured in the initializer that is generated on install from this template: https://github.com/gregbell/active_admin/blob/master/lib/generators/active_admin/install/templates/active_admin.rb.erb#L61 https://github.com/gregbell/active_admin/blob/master/lib/gen... I haven't used ActiveAdmin in a few months, but when I last did I was really impressed.