Renamed "elections" controller to "election."
[selectricity] / app / views / election / show.rhtml
diff --git a/app/views/election/show.rhtml b/app/views/election/show.rhtml
new file mode 100644 (file)
index 0000000..954e480
--- /dev/null
@@ -0,0 +1,18 @@
+<% %>
+<h1>Information On <%= @election.name %></h1>
+
+<h2>Overview <%= link_to "edit", :action => 'edit', :id => @election.id %></h2> 
+
+<p><strong>Description</strong></p>
+
+<blockquote>
+<%= @election.description %>
+</blockquote>
+
+<h2>Candidates <%= link_to "edit", :action => 'edit_candidates', :id => @election.id %></h2> 
+
+<%= render :partial => 'candidate_list' %>
+
+<h2>Voters <%= link_to "edit", :action => 'edit_voters', :id => @election.id %></h2>
+
+<%= render :partial => 'voter_list' %>

Benjamin Mako Hill || Want to submit a patch?