form for code example
Example 1: form feild rails helper
<%= form_tag("/search", method: "get") do %>
<%= label_tag(:q, "Search for:") %>
<%= text_field_tag(:q) %>
<%= submit_tag("Search") %>
<% end %>
Example 2: class on form_for
= form_for @user, html: {class: 'x', data: { bar: 'baz' } } do |f|