Homework: H3 Rendering Data from a Controller in a View

For this homework, you will continue working on the homework-project Rails web app that you started last time. In particular, this homework will emphasize passing data from a controller to a view. It will also provide you with additional practice adding pages to your Rails web app and using Git for version control.

The tasks you will perform draw heavily from this demonstration:

Part 1. Add a New Page That Displays a Question

In this part, you will add a new page that displays a question. This part should be similar to the tasks you performed in the previous homework. When you add the page, do the following:

Screenshot of Question webpage

Once you have completed this part, commit the current version of the code to your local repo, and push the changes to the remote GitHub repo.

Part 2. Pass the Question Data from the Controller to the View

In this step, you must move the question data into the controller as follows:

When you have completed these steps, the page should appear in your browser exactly as it did before, with only the implementation having changed.

Once you have completed this part, commit the current version of the code to your local repo, and push the changes to the remote GitHub repo.