RailsCasts Pro episodes are now free!

Learn more or hide this

Médéric DE LAUNAY's Profile

GitHub User: mdelaunay

Comments by Médéric DE LAUNAY

Avatar

Works with :

raffle.js.coffee
angular.module('Raffler', []).controller "RaffleCtrl", ($scope) ->

  $scope.entries = [
    {name: "Larry"}
    {name: "Curly"}
    {name: "Moe"}
  ]

and :

application.html.erb
<html ng-app="Raffler">

Using Rails 4.1.7 ; very new angular user.