public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Michael Hartl (author)
Mon Feb 25 22:57:00 -0800 2008
commit  d1a6476dee3950693ee31c9d78c714162ae13c2b
tree    38c631832258d14ebf23d3b0948fe24378b93093
parent  b8324cc82bfea99134f9afed28b99df07fe1f4d7
insoshi / app / views / comments / index.html.erb
100644 27 lines (22 sloc) 0.593 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<h1>Listing comments</h1>
 
<table>
  <tr>
    <th>Person</th>
    <th>Blog</th>
    <th>Body</th>
    <th>Type</th>
  </tr>
 
<% for comment in @comments %>
  <tr>
    <td><%=h comment.person_id %></td>
    <td><%=h comment.blog_id %></td>
    <td><%=h comment.body %></td>
    <td><%=h comment.type %></td>
    <td><%= link_to 'Show', comment %></td>
    <td><%= link_to 'Edit', edit_comment_path(comment) %></td>
    <td><%= link_to 'Destroy', comment, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>
 
<br />
 
<%= link_to 'New comment', new_comment_path %>