Ruby on Rails using nested_form, cocoon, etc.
You are creating a one-to-many relationship model using accepts_nested_attributes_for.
Use link_to_add_association on the one-to-many form to
If you dynamically increase or decrease the input form of many models,
The data-toggle of many forms that were displayed from the beginning works correctly.
Data-toggle is not working for the form that was increased by clicking link_to_add_association
I think it was caused by the code being escaped, but
Are there any countermeasures in this case?
Is it difficult to use data-toggle when using link_to_add_association in the first place?
I look forward to your kind cooperation.
ruby-on-rails ruby
If you dynamically increase or decrease the input form (I think it's ajax),
It appears that data-toggle is not loaded.
I think it is necessary to reload the data-toggle with javascript when it increases or decreases.
578 Understanding How to Configure Google API Key
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
582 PHP ssh2_scp_send fails to send files as intended
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
620 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.