An open API service indexing awesome lists of open source software.

https://github.com/mnishiguchi/selectize_app


https://github.com/mnishiguchi/selectize_app

rails selectize

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# Selectize app
- [Rails - Selectize field with modal add form](https://gist.github.com/mnishiguchi/38c46c8ddba5c92cfb1169521f9397c6)

---

## UI flow

- User types a word and hit the `Add ...` button. -> Modal opens with an add form.
- User fill the new-category form and submit. -> The form data is persisted to the database
- If user closes the modal without submitting the form, the form will be cleared and the modal will close.

---

## erd

![](erd/erd.jpg)

---

## References

- https://selectize.github.io/selectize.js
- https://gorails.com/episodes/select-or-create-with-selectize-js
- https://github.com/gorails-screencasts/gorails-episode-178