Check out example codes for "button in rails". It will help you in understanding the concepts better.
Code Example 1
<%= button_to "Delete Image", image_path(@image), method: :delete %> #first argument is the button text; the second argument is an expression of a route, and method is used to tell the form to send its payload as an HTTP DELETE action
Learn ReactJs, React Native from akashmittal.com