Taken this form as an example:
<code><%= form_with model: @product do |f| %>
<!-- ... --!>
<% end %>
</code>
<code><%= form_with model: @product do |f| %>
<!-- ... --!>
<% end %>
</code>
<%= form_with model: @product do |f| %>
<!-- ... --!>
<% end %>
The routes-file:
<code>get "/products", to: "products#index"
get "/products/new", to: "products#new"
post "/products", to: "products#create"
get "/products/:id", to: "products#show", as: "product"
</code>
<code>get "/products", to: "products#index"
get "/products/new", to: "products#new"
post "/products", to: "products#create"
get "/products/:id", to: "products#show", as: "product"
</code>
get "/products", to: "products#index"
get "/products/new", to: "products#new"
post "/products", to: "products#create"
get "/products/:id", to: "products#show", as: "product"
How does it know that it has to invoke it create-action of the products-controller?
What is the decision based upon?