Ho il seguente codice ma non sono in grado di capire come si verifica il routing per form_for ([@ article, @ article.comments.build]). Ruby on Rails Form Per con due parametri
Titolo: <% = @ ARTICLE.TITLE%>
<p>
<strong>Text:</strong>
<%= @article.text %>
</p>
<h2>Add a comment:</h2>
<%= form_for([@article, @article.comments.build]) do |f| %>
<p>
<%= f.label :commenter %><br>
<%= f.text_field :commenter %>
</p>
<p>
<%= f.label :body %><br>
<%= f.text_area :body %>
</p>
<p>
<%= f.submit %>
</p>
<% end %>
<%= link_to 'Back', articles_path %>
| <%= link_to 'Edit', edit_article_path(@article) %>
Davvero una buona spiegazione. – Niyanta