Display same in hostname and IP when IP lookup fails
authorJohn Dong <jdong@mit.edu>
Wed, 15 Aug 2007 21:35:51 +0000 (17:35 -0400)
committerJohn Dong <jdong@mit.edu>
Wed, 15 Aug 2007 21:35:51 +0000 (17:35 -0400)
app/views/quickvote/results.rhtml

index 98a71e54c97cdf8f05368832506b5b5ba8f5327d..9677d9ac0ae307e2ab7d102da2827b5e4a516220 100644 (file)
@@ -160,7 +160,7 @@ by several other names.</p>
       <%= `host #{IPAddr.new(voter.ipaddress).to_s}`.sub(/^.*pointer (.*)\.$/, '\1') %>
     
     <% rescue ArgumentError => err %>
-      <%= " - " %>
+      <%= voter.ipaddress %>
     <% end %>
     </td>
   <td><%= voter.vote.votestring %></td>

Benjamin Mako Hill || Want to submit a patch?