General Assembly Logo

Assessment: Controllers, Routes, Active Record and SQL

Objectives

In this assessment, students are asked to demonstrate knowledge of:

  • Creating resourceful routes that map to controller actions
  • Creating migrations to create/alter a schema
  • Writing SQL SELECT queries
  • Using Active Record methods to retrieve records
  • Assigning results of Active Record methods to instance methods in controllers

Instructions

Fork and clone this repo. Then run the following commands prior to starting to code:

  • cd wdi_2_assessment_sql_activerecord
  • bundle install
  • rake db:create db:migrate db:test:prepare

Run your tests with rspec spec. Write code to make them pass.

Make a git commit, push your code to Github, and make a Pull Request to turn in your work.

Additional Resources