Following the usual Active Reading (AR) Instructions, carefully read and perform the steps in each of the following Demos-n-Deets demos:
cd
into your workspace folder.git clone
the base app repo, giving it a custom name, like sa1-ar-model-classes
.cd
into the new working directory.git switch
to the base app branch specified in the demo.bundle install
/rails db:migrate && rails db:seed
, and begin the demo.alice@email.com
(password: password
).QuizzesController
class in VS Code, including the before_action
declaration.QuestionsController
class in VS Code, including the before_action
declaration.alice@gmail.com
and creating a new Quiz.app/views/quizzes/index.html.erb
view template in VS Code.QuizzesController
class in VS Code.alice@gmail.com
and then (2) try to open the page: http://localhost:3000/quizzes/1/edit. (Should display index page with error notification.)In the above screenshots, code which is too long to be captured in one screenshot may be split up into multiple screenshots.
Important! All screenshots must include your computer’s desktop in the background so that it is recognizable as your desktop. Also, all screenshots of web pages must display the entire URL of the page in the browser’s location bar. (Watch out, as some browsers like to hide parts of the URL unless you click on it.)