What to do when you need a button_to within a form in Rails
08-Jun-2023 601
Imagine that you have a form to update a record (let’s say a product record) and inside the form, you are showing a list of images, and each image needs a button to remove it. You tried to use button_to but it doesn’t work because in html you can.
What to do when you need a button_to within a form in Rails #ruby #rubydeveloper #rubyonrails #button_to #within #Rails https://rubyonrails.ba/link/what-to-do-when-you-need-a-button_to-within-a-form-in-rails