From afbf3224cca6efd0fc832e13e06ca9a400bb1258 Mon Sep 17 00:00:00 2001 From: Pius Uzamere Date: Thu, 3 Dec 2009 22:15:40 -0500 Subject: [PATCH] spike --- app/models/visitor.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/models/visitor.rb b/app/models/visitor.rb index 6e1f6ae..58137c5 100644 --- a/app/models/visitor.rb +++ b/app/models/visitor.rb @@ -13,6 +13,7 @@ class Visitor < ActiveRecord::Base end def vote_for!(prompt, ordinality) + logger.info 'testing' choices = prompt.choices choice = choices[ordinality] #we need to guarantee that the choices are in the right order (by position) prompt_vote = votes.create!(:voteable => prompt) -- libgit2 0.21.2