Rails: Update a record from link_to

0

I have the following problem, I need to update the estado of a record, for that I want to link it to a link , my código is the following:

<%= link_to prescription_path(pres.id), method: :patch do %>
    <i class="material-icons" style="color: rgba(0, 0, 0, 0.54);">delete</i>
<% end %>

Which gives me the following error

    
asked by user101595 27.09.2018 в 23:23
source

0 answers