RailsCasts Pro episodes are now free!

Learn more or hide this

tdubb's Profile

GitHub User: tdubb

Comments by

Avatar

So this railscast is great but I ran into problems with the config/initializers/doorkeeper.rb file. Instead of getting to the authorization pages I was redirected to the provider site homepage. I was able to fix this by using all the code shown here
LINK

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>