Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

tdubb's Profile

GitHub User: tdubb

Comments by

Avatar

Great comments, especially Sergey and Adrian's comments helped me get mine working. I put a clear winner button. Here's the code:

raffler.js.coffee

ruby
$scope.clearWinner = ->
    angular.forEach $scope.entries, (entry) ->
      entry.winner = false

index.html.rb

ruby
  <button ng-click="clearWinner()">
    Clear Winners
  </button>