changed id to id to_i in votable.rb