Rails Dynamic Select is a simple application to show how implement a dynamic select with Rails and Hotwire Turbo.
In this application, we have three models, Author, Article and Collection.
To demonstrate this functionality, we can add articles to a collection, filter the articles by author. When we select an author, the articles list will be updated with the articles of the selected author.
- Clone this repository
- Install dependencies with
bundle install
- Run the migrations with
rails db:migrate
- Populate the database
rails db:seed
- Run the server with
./bin/dev
- Visit http://localhost:3000
- Ready to Use
Feel free to customize this application.
Check the tutorial step by step in