A live broadcasting system enables you to create your own TV show by mesh-up.
Fighting in Congress
+ Your Narration
----------------------------------
Wrestling
It's all about realtime interaction with audiences.
Ruby on Rails
Angularjs
=
awesome realtime web app
Rails
for member & data API
But there's always some obstacles in a fascinating Romance
First, Angularjs can't post/put to Rails by default
Why?
Rails's built-in CSRF protection is stopping any non-GET request without a valid CSRF token
$httpProvider.defaults.headers.common =
{
'X-CSRF-Token':
$('meta[name="csrf-token"]').attr('content')
}
var MainCtrl = function($scope, $http) {....}
var MainCtrl = function(a, b) {....}
var MainCtrl = ['$scope' , '$http', function($scope, $http) {....} ]