OSDN Git Service

w
[pettanr/pettanr.git] / app / views / stories / index.html.erb
index 1ab65ec..7b61ab8 100644 (file)
@@ -1,5 +1,8 @@
 <h1><%= t '.title' -%></h1>
-<% @stories.each do |story| %>
-  <%= render 'list_item', :story => story, :author => @author %>
-<% end %>
+<table>
+  <% @stories.each do |story| %>
+    <%= render 'list_item', :story => story, :author => @author %>
+  <% end %>
+</table>
+<%= paginate(@paginate) %>
 <%= link_to t('stories.new.title'), new_story_path %>