Rails I
3 credits
Episode model created | 10 |
Episode controller created | 10 |
Episode views created (4) | 10 |
7 actions in controller work appropriately | 10 |
Model contains appropriate validations | 10 |
Views are tidy and easy to use | 10 |
Search ability is present and functioning | 30 |
Controller tests are appropriate and include the search feature | 10 |
Total | 100 pts |
To write the model, views, and controller for a single model application
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.