aboutsummaryrefslogblamecommitdiffstats
path: root/guides/code/getting_started/app/views/comments/_form.html.erb
blob: 5850c41a1741ab2a984ef5260f93f10ba789e377 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                           
     

                                   

      

                              

      
                   
      
         
<%= 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 %>