Sha256: 4a64375cdd362985f1ee68d99cf118b9d4bd5906c153541b1170504df4b0e1c1

Contents?: true

Size: 809 Bytes

Versions: 65

Compression:

Stored size: 809 Bytes

Contents

<h1>Listing comments</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Comment</th>
    <th>User</th>
    <th>Votes</th>
    <th>Vote up!</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @comments.each do |comment| %>
  <tr id="c_<%= comment.id %>">
    <td><%= comment.name %></td>
    <td><%= comment.comment %></td>
    <td><%= comment.user_id %></td>
    <td><%= comment.votes %></td>
    <td>
    <% (1..5).each do |i| %>
      <%= link_to "#{i}", "/comments/#{comment.id}/vote/#{i}" %>
    <% end %>
    </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 %>

Version data entries

65 entries across 42 versions & 1 rubygems

Version Path
merit-1.7.1 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.7.0 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.6.2 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.6.1 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.6.0 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.5.0 test/dummy/app/views/comments/index.html.erb
merit-1.5.0 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.4.0 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.4.0 test/dummy/app/views/comments/index.html.erb
merit-1.3.1 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.3.1 test/dummy/app/views/comments/index.html.erb
merit-1.3.0 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.3.0 test/dummy/app/views/comments/index.html.erb
merit-1.2.3 test/dummy/app/views/comments/index.html.erb
merit-1.2.3 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.2.2 test/dummy/app/views/comments/index.html.erb
merit-1.2.2 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.2.1 test/dummy/app/views/comments/index.html.erb
merit-1.2.1 test/dummy-mongoid/app/views/comments/index.html.erb
merit-1.2.0 test/dummy-mongoid/app/views/comments/index.html.erb