README
This is an example Rails 6.x site that has ActiveAdmin, Devise and Stimulus.js, where Stimulus.js controllers are loaded into the admin, as well as the frontend.
Setup
- Make sure you have Ruby 2.6.3 installed
- Make sure you have Postgres up and running (easiest way on macOS is the Postgres.app)
- Clone the repo
git clone git@github.com:cfurrow/ExampleActiveAdminWithStimulus.git
cd ExampleActiveAdminWithStimulus
bundle install
bin/rails db:setup
bin/webpack-dev-server
(this will continue to monitor changes to JS files, and build new webpack packs)- (open a new terminal, and run)
bin/rails server
Testing ActiveAdmin + Stimulus
- visit http://127.0.0.1:3000/admin/users
- login with credentials found in
db/seeds.rb
- Edit the user you see in the list
- Click and select the
<select>
dropdown in the password area to see the password inputs go from being enabled/to disabled