aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/app/views/comments/_form.html.erb
blob: d15bdd6b59695cf1e62bb0eecbe546f0137ed0d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<%= form_for([@post, @post.comments.build]) do |f| %>
  <div class="field">
    <%= f.label :commenter %><br />
    <%= f.text_field :commenter %>
  </div>
  <div class="field">
    <%= f.label :body %><br />
    <%= f.text_area :body %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>