Two types of usage of form_with method.
form_with
<%= form_with url: a_path do |f| %> : <% end %> <%= form_with model: a_model do |f| %> : <% end %>