Add the has_many_polymorphs plugin
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / test / integration / app / app / views / states / index.html.erb
diff --git a/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/states/index.html.erb b/vendor/plugins/has_many_polymorphs/test/integration/app/app/views/states/index.html.erb
new file mode 100644 (file)
index 0000000..07c11ae
--- /dev/null
@@ -0,0 +1,19 @@
+<h1>Listing states</h1>
+
+<table>
+  <tr>
+  </tr>
+
+<% for state in @states %>
+  <tr>
+    <td><%= state.name %></td>
+    <td><%= link_to 'Show', state %></td>
+    <td><%= link_to 'Edit', edit_state_path(state) %></td>
+    <td><%= link_to 'Destroy', state, :confirm => 'Are you sure?', :method => :delete %></td>
+  </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New state', new_state_path %>