How to update 'status' value in table on each button click
问题 I want to update the status value in the properties table as (1 or 2 or 3 or 4) when I click on each button. These are my buttons in my view file: <td><%= link_to("Waiting for Response", rms_property_approve_property_path(property, {:status => 'Waiting for Response'}), method: :patch, class: "btn btn-success", "data-no-turbolink" => true) %><td> <td><%= link_to("No Response", rms_property_approve_property_path(property, {:status => 'No Response'}), method: :patch, class: "btn btn-danger",