Ken M (12) [Avatar] Offline
#1
The last paragraph of section 4.8 is testing error states. The paragraph says that in a previous section we set the title as required. I don't see that anywhere in the the first 4 chapters. The model (video.js) in GitHub code for Chapter 4 does contain the code.


"Now let’s see this in action. First make sure that Sails is running via sails lift. To test our
error state, open a browser and navigate to localhost:1337/videos. In a previous section, we
set up the title attribute as required.
Therefore if we attempt to create video record without a
title we should see an error message similar to Figure 4.x"
283876 (35) [Avatar] Offline
#2
I'll make sure that is added back in.

Best, Irl
Daniel Vianna (6) [Avatar] Offline
#3
Also you should include

$scope.$apply();


before

return;


in

https://github.com/mikermcneil/brushfire/blob/chapter4/assets/js/videos-page.js#L110

Or it will simply take forever to get the error message.