Todo App using rails and angularjs