01.09.17 - 05.07.17
Episodes
Objective: To write the model, views, and controller for a single model application
pastdue
Episode model created | 10 pts |
Episode controller created | 10 pts |
Episode views created (4) | 10 pts |
7 actions in controller work appropriately | 10 pts |
Model contains appropriate validations | 10 pts |
Views are tidy and easy to use | 10 pts |
Search ability is present and functioning | 30 pts |
Controller tests are appropriate and include the search feature | 10 pts |
Total | 100 pts |
For this lab you will need to create the model, controller, and views needed for a single model Rails application. This application should model Television Episodes where each instance contains the title (string), description (text), and episode number (integer) for that episode.
When your lab is complete it should be possible to perform the 7 basic CRUD operations (index, show, new, create, edit, update, destroy) on your model. The data for the model should be stored in a database and should be able to be worked with fully through a web interface. The interface should be friendly and easy to use and understand and forms should include validation.
In addition to the basic 7 CRUD capabilities there should also be the ability for the user to search for Episodes by any of their attributes. Any Episodes that match the search criteria should be listed for the user, again in a friendly and easy to work with manner.
Make sure that all appropriate tests are written for the basic 7 CRUD capabilities and that the search feature is also included. Model tests only need to be included if changes to the model are made.