IT 231
Spring 2018
Craig Miller
Weekly Notes
Assignments
- Assignment 1
- Assignment 2
- Assignment 3
- Assignment 4
- Assignment 5
- Assignment 6
For this project, you will add a new controller and view to a scaffolded application. This controller and view will present a summary report of the database contents for your application.
The assignment addresses the following goals:
This project requires the use of a scaffolded application. You may want to use the same application from the last week.
Create a new model method and add it to your model file. This method (perhaps called 'description') returns a summary description of an instance belonging to the model. We'll go over an example in class.
Create a new controller called 'report' and a view called 'summary'. This step can be completed with one command:
Check the routes.rb file (in the config folder) and verify that a new route has been created. You can also run the application to see if the dummy page is working. The URL path is this:
Write code to the new controller and view so that it presents the following information:
You are strongly encouraged to add additional information to your view. Examples might include the date of when the last record was added or a listing showing records that meet a specific condition.
Finally, use CSS to provide some formatting to your view.
Using any word processor, write a short summary document that describes your efforts for this assignment. The summary document should include the following:
Place the summary document in your rails application folder. Zip up the folder. Submit the zip file using D2L.
This project is worth 20 points:
Submissions are eligible for partial credit. Always submit an assignment even if it is not complete.