projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add VideoGenres to the system
[cs356-p2-videostore.git]
/
app
/
views
/
video_genre
/
list.rhtml
diff --git
a/app/views/video_genre/list.rhtml
b/app/views/video_genre/list.rhtml
index
2e64727
..
e918ec5
100644
(file)
--- a/
app/views/video_genre/list.rhtml
+++ b/
app/views/video_genre/list.rhtml
@@
-1,20
+1,14
@@
-<h1>Listing
video_g
enres</h1>
+<h1>Listing
Video G
enres</h1>
-<table>
+<table
border="1"
>
<tr>
<tr>
- <% for column in VideoGenre.content_columns %>
- <th><%= column.human_name %></th>
- <% end %>
+ <th>Name</th>
</tr>
<% for video_genre in @video_genres %>
<tr>
</tr>
<% for video_genre in @video_genres %>
<tr>
- <% for column in VideoGenre.content_columns %>
- <td><%=h video_genre.send(column.name) %></td>
- <% end %>
- <td><%= link_to 'Show', :action => 'show', :id => video_genre %></td>
+ <td><%= link_to video_genre.name, :action => 'show', :id => video_genre %></td>
<td><%= link_to 'Edit', :action => 'edit', :id => video_genre %></td>
<td><%= link_to 'Edit', :action => 'edit', :id => video_genre %></td>
- <td><%= link_to 'Destroy', { :action => 'destroy', :id => video_genre }, :confirm => 'Are you sure?', :method => :post %></td>
</tr>
<% end %>
</table>
</tr>
<% end %>
</table>