Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

imp-guru's Profile

GitHub User: imp-guru

Comments by

Avatar

In testing the intermediate code at 4:46, for some reason, I am getting this error on page load:

Error: [ng:areq] Argument 'RaffleCtrl' is not a function, got undefined
http://errors.angularjs.org/1.3.0/ng/areq?p0=RaffleCtrl&p1=not%20a%20function%2C%20got%20undefined
at http://localhost:3000/assets/angular.js?body=1:81:12
at assertArg (http://localhost:3000/assets/angular.js?body=1:1611:11)
at assertArgFn (http://localhost:3000/assets/angular.js?body=1:1621:3)
at http://localhost:3000/assets/angular.js?body=1:8320:9
at http://localhost:3000/assets/angular.js?body=1:7497:34
at forEach (http://localhost:3000/assets/angular.js?body=1:344:20)
at nodeLinkFn (http://localhost:3000/assets/angular.js?body=1:7484:11)
at compositeLinkFn (http://localhost:3000/assets/angular.js?body=1:6992:13)
at compositeLinkFn (http://localhost:3000/assets/angular.js?body=1:6995:13)
at compositeLinkFn (http://localhost:3000/assets/angular.js?body=1:6995:13)

what is strange is that if I look at the raffle.js file, it looks fine and if I type RaffleCtrl into the console, it returns a function.

Using Rails 4.1.4