Check out example codes for "add ruby title html erb icon". It will help you in understanding the concepts better.

Code Example 1

<%= favicon_link_tag asset_path('image-name.png') %>

Learn ReactJs, React Native from akashmittal.com