Skip to content

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.

Notifications You must be signed in to change notification settings

lucasgeron/rails-dynamic-select

Repository files navigation

Dynamic Select with Rails and Hotwire Turbo

rails dynamic select demo

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.

Installation

  • 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.

Tutorial Step by Step

Check the tutorial step by step in

About

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.

Topics

Resources

Stars

Watchers

Forks