Check out example codes for "rails image_tag link size". It will help you in understanding the concepts better.
Code Example 1
<%= link_to image_tag('btn.png'), '/books/index' %>
--> <a href="/books/index"><img alt="Btn" src="/assets/btn.png" /></a>
Learn ReactJs, React Native from akashmittal.com