Check out example codes for "form feild rails helper". It will help you in understanding the concepts better.

Code Example 1

<%= form_tag("/search", method: "get") do %>
  <%= label_tag(:q, "Search for:") %>
  <%= text_field_tag(:q) %>
  <%= submit_tag("Search") %>
<% end %>

Learn ReactJs, React Native from akashmittal.com