Initital scaffolding of the website plus initial work on the adding and
[selectricity] / app / views / elections / show.rhtml
diff --git a/app/views/elections/show.rhtml b/app/views/elections/show.rhtml
new file mode 100644 (file)
index 0000000..0ef2fc5
--- /dev/null
@@ -0,0 +1,23 @@
+<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> 
+
+
+The following are valid options or candidates in this election:
+
+<ul>
+<% @election.candidates.each do |candidate| %>
+   <% @candidate = candidate %>
+   <%= render :partial => 'candidate_line' %>
+<% end %>
+</ul>
+
+<h2>Voters <%= link_to "edit", :action => 'edit_voters', :id => @election.id %></h2>

Benjamin Mako Hill || Want to submit a patch?