Skills Test S3 Model Basics
Learning Goals
Main Goals
- Use a web development platform (Rails) to create and use a back-end model class for storing data in a database.
- Use a web development platform (Rails) to insert seed data in a database.
- Use a web development platform (Rails) to render backend data on a page by passing data from a controller to a view.
Ancillary Goals
- Setup and maintain a functioning platform-based (Rails web) development environment.
- Use development tools to initialize and run an existing platform-based (Rails web) application.
Preparing for the Test
As always, make sure that you have gone through the General Skills Test Instructions
This test emphasizes the material covered in the following demos, so you should go through them in detail, practicing the steps for creating models, seeding the database, and making index
and show
pages.
- Creating Model Classes
- Automatically Annotating Model Code
- Seeding the Database
- Displaying All Model Records
- Displaying a Single Model Record
Practice Problems
Practice solving these old skills tests. To make the test apps run in these, you must edit config/database.yml
and comment out the username
and password
lines. You must also make sure that Ruby version 2.6.3 is installed by running the command rvm install 2.6.3
.
- https://github.com/memphis-cs/skills-test-2019-fall/tree/s05a
- https://github.com/memphis-cs/skills-test-2019-fall/tree/s05b
- https://github.com/memphis-cs/skills-test-2019-fall/tree/s0502a
- https://github.com/memphis-cs/skills-test-2019-fall/tree/s0502b
Additionally(!), practice making show
pages as well.