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
operationspath inconfig/initializers/active_admin.rb:config.default_namespace = :operations config.load_paths = [File.join(Rails.root, 'app', 'operations')] -
Rename
app/admintoapp/operations. -
Edit your
module.exportcontents intailwind-active_admin.config.jsto contain the new operations path:'./app/operations/**/*.{arb,erb,html,rb}', -
Delete
test/fixtures. -
Un-comment
Trackable,Confirmable, andLockablein the generated migration file. -
Add
:confirmable,:lockable,:timeoutable, and:trackableto yourSystemOperatormodel.
Execute Link to heading
bundle exec rails db:migrate
Restart Link to heading
Restort your webserver and visit /operations in your browser.