nkokkos / rails_7_modal_form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

This app builds on

  1. Modal Forms with Rails using the exaple here: https://nobrainerprogramming.com/rails-7-modal-forms-with-hotwire-and-bootstrap/

  2. Replace Select with Tomselect using the example here: https://coolrequest.dev/2021/11/25/replace_select2.html

and it enhances autocomplete with ajax and tomselect selection.

What is the problem? A problem arises when you try to edit records with tomselect as the records do not show up. as seen here: https://stackoverflow.com/questions/75366601/rails-tom-select-how-to-keep-selected-value-in-edit-form

Look at the code at

to see how this is resolved

About


Languages

Language:Ruby 61.3%Language:HTML 29.9%Language:JavaScript 8.1%Language:SCSS 0.4%Language:Shell 0.3%