Check out example codes for "ruby and rails html show date year". It will help you in understanding the concepts better.

Code Example 1

<%= Time.current.year %>

Learn ReactJs, React Native from akashmittal.com