Asset-Tracker/app/views/comments/edit.html.erb

24 lines
445 B
Plaintext
Raw Normal View History

2011-06-15 01:08:28 +00:00
<h1>Editing 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 :commenter %><br />
<%= f.text_field :commenter %>
</p>
<p>
<%= f.label :body %><br />
<%= f.text_area :body %>
</p>
<p>
<%= f.submit 'Update' %>
</p>
<% end %>
<%= link_to 'Show', @comment %> |
<%= link_to 'Back', comments_path %>