Created a partial to DRY the aja voting method. Modified the voter class to
[selectricity-live] / app / views / election / _candidate_line.rhtml
index 870a2de03d6bb977c9776abd745f7bd66c671d2a..e5bcf07b22b22275675f00fa799d1857042c7d68 100644 (file)
@@ -1,19 +1,19 @@
-<% -%>
 <div id="cand<%= @current_candidate.id %>">
   <li><%=h @current_candidate.name -%>
     <% if @show_details %>
       (<%= link_to_remote "Hide Details",
                          :update => "cand#{@current_candidate.id}",
-                         :url => { :action => :lessinfo_candidate, :id => @current_candidate.id } %>)
+                         :url => { :action => :lessinfo_candidate,
+                                      :id => @current_candidate.id } %>)
       <br />
       <blockquote>
-      <%= h(@current_candidate.description) %>
+      <%=(@current_candidate.description) %>
       </blockquote>
     <% else %>
       (<%= link_to_remote "Show Details",
                          :update => "cand#{@current_candidate.id}",
                          :url => { :action => :moreinfo_candidate,
-                        :id => @current_candidate.id } %>)
+                                              :id => @current_candidate.id } %>)
     <% end %>
   </li>
 </div>

Benjamin Mako Hill || Want to submit a patch?