Initital scaffolding of the website plus initial work on the adding and
[selectricity-live] / app / views / elections / show.rhtml
1 <h1>Information On <%= @election.name %></h1>
2
3 <h2>Overview <%= link_to "edit", :action => 'edit', :id => @election.id %></h2> 
4
5 <p><strong>Description</strong></p>
6
7 <blockquote>
8 <%= @election.description %>
9 </blockquote>
10
11 <h2>Candidates <%= link_to "edit", :action => 'edit_candidates', :id => @election.id %></h2> 
12
13
14 The following are valid options or candidates in this election:
15
16 <ul>
17 <% @election.candidates.each do |candidate| %>
18    <% @candidate = candidate %>
19    <%= render :partial => 'candidate_line' %>
20 <% end %>
21 </ul>
22
23 <h2>Voters <%= link_to "edit", :action => 'edit_voters', :id => @election.id %></h2>

Benjamin Mako Hill || Want to submit a patch?