Added a series of files so that elections can be created and edited and
[selectricity] / app / views / elections / _candidate_list.rhtml
diff --git a/app/views/elections/_candidate_list.rhtml b/app/views/elections/_candidate_list.rhtml
new file mode 100644 (file)
index 0000000..ca8a5cc
--- /dev/null
@@ -0,0 +1,7 @@
+<% %>
+<ul id="candidate_list">
+  <% @election.candidates.each do |candidate| %>
+    <% @candidate = candidate %>
+      <%= render :partial => 'candidate_line' %>
+    <% end %>
+</ul>

Benjamin Mako Hill || Want to submit a patch?