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.Quiz
model class in VS Code.Question
model class in VS Code.db/schema.rb
file in VS Code.Question
index page that includes several rows in the table.Question
new/create form in VS Code.Question
edit/update form in VS Code.config/routes.rb
file in VS Code.QuestionsController
class in VS Code.app/views/questions/index.html.erb
view template in VS Code.app/views/questions/new.html.erb
view template in VS Code.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.)