aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/app/views/comments/_form.html.erb
blob: 00cb3a08f076c6072720554f2775bd6cbe07fd7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<%= form_for([@post, @post.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 %>