Homework: H7 Forms for Creating New Model Records

For this homework, you will continue to build upon the Rails app from the previous homework by adding model validations to prevent bad data from being saved to the database and by writing model tests to verify that the model code you create works correctly. Additionally, you will practice using the basic version control features of Git.

The tasks you will perform draw heavily from this demonstration:

The specific tasks are detailed below, and each one refers to a model class from the last homework. For each task you must do the following:

Task 1: Book Model

UML class diagram depicting a model class
Figure 1.1

Task 2: Author Model

UML class diagram depicting a model class
Figure 2.1

Task 3: Review Model

UML class diagram depicting a model class
Figure 3.1

Task 4: User Model

UML class diagram depicting a model class
Figure 4.1