Asset-Tracker/app/views/comments/new.html.erb
2011-06-14 18:08:28 -07:00

20 lines
324 B
Plaintext
Executable File

<h1>New comment</h1>
<% form_for(@comment) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :post_id %><br />
<%= f.text_field :post_id %>
</p>
<p>
<%= f.label :body %><br />
<%= f.text_area :body %>
</p>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
<%= link_to 'Back', comments_path %>