Gems Link to heading
Add these to your Gemfile
:
# Administration
gem 'activeadmin', '~> 4.0.0.beta4'
# Authentication
gem 'devise', '~> 4.9', '>= 4.9.3'
Then install your new gems:
bundle install
Generate Link to heading
bundle exec rails generate active_admin:install \
SystemOperator \
--skip-comments \
--no-registerable \
--no-default-user
Changes Link to heading
-
Configure the
operations
path inconfig/initializers/active_admin.rb
:config.default_namespace = :operations config.load_paths = [File.join(Rails.root, 'app', 'operations')]
-
Rename
app/admin
toapp/operations
. -
Edit your
module.export
contents intailwind-active_admin.config.js
to contain the new operations path:'./app/operations/**/*.{arb,erb,html,rb}',
-
Delete
test/fixtures
. -
Un-comment
Trackable
,Confirmable
, andLockable
in the generated migration file. -
Add
:confirmable
,:lockable
,:timeoutable
, and:trackable
to yourSystemOperator
model.
Execute Link to heading
bundle exec rails db:migrate
Restart Link to heading
Restort your webserver and visit /operations
in your browser.