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