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