OSDN Git Service

t#30009:fix views
[pettanr/pettanr.git] / app / views / home / comic.html.erb
1 <h1>Listing comics</h1>
2 <% @comic = Comic.new unless @comic %>
3
4 <%= render 'comics/form' %>
5
6 <table>
7   <tr>
8     <th>title</th>
9     <th>author</th>
10     <th>updated_at</th>
11     <th>edit</th>
12   </tr>
13   <% @comics.each do |comic| %>
14     <%= render 'comics/list_item', :comic => comic, :author => @author %>
15   <% end %>
16 </table>