Add coitem MVC
[cs356-p2-videostore.git] / app / views / coitem / show.rhtml
diff --git a/app/views/coitem/show.rhtml b/app/views/coitem/show.rhtml
new file mode 100644 (file)
index 0000000..f847dca
--- /dev/null
@@ -0,0 +1,8 @@
+<% for column in Coitem.content_columns %>
+<p>
+  <b><%= column.human_name %>:</b> <%=h @coitem.send(column.name) %>
+</p>
+<% end %>
+
+<%= link_to 'Edit', :action => 'edit', :id => @coitem %> |
+<%= link_to 'Back', :action => 'list' %>