E
E
egor_sinyavsky2021-09-18 18:12:49
Ruby on Rails
egor_sinyavsky, 2021-09-18 18:12:49

Doesn't fire when image_submit_tag is clicked, what's wrong?

Everything inside:

<%= form_tag bulk_destroy_home_index_path, method: :delete, method: :put do %>

So, when clicked, everything works:
<%= submit_tag('Delete', name: 'delete', method: :delete) %>

but I need to display as a picture, and when I display as a picture, everything is deaf, when I click:
<%= image_submit_tag("Elements/delete.png", width: "35", height: "35", name: 'delete', method: :delete) %>

I tried to do something like this, also deafly:
<%= submit_tag(image_tag("Elements/delete.png")), name: 'delete', method: :delete %>


Maybe someone knows what's wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question