<%= form_for @topic do |f| %>

<%= f.label :subject %> <%= f.text_field :subject %>

<%= f.fields_for :posts do |post| %> <%= render :partial => "forem/posts/form", :locals => { :post => post} %> <% end %> <%= f.submit %> <% end %>