Revised booking logic to use sql more efficiently.
Validate dates pre-validation in model so as not to error when executing booking logic. Add errors messages to indicate which dates are problematic.
Make course @course in create method in order to display error messages.
Add show page. Change pre_work field from boolean to string, so can be 'yes', 'no' or 'n/a'.
Add course edit view and update controller action.