5.5 Relationship Advice
Today we're going to take a look into MVC in Depth as well as how to relate models in ActiveRecord.
MVC Recap
- Video for Lecture: https://www.youtube.com/watch?v=wVm-KFexMaI
Lab: Tskrrr!
You're going to be given a fully operational CRUD operation. Except we've removed code from your migrations.sql and TaskController! You need to use ActiveRecord and your Database wizard skills to get the app up and running.
- Fork this repository: https://github.com/ga-chicago/Tskrrr
- Clone it to your WDI directory.
- With a partner, inspect all of your code.
- Solve the missing code with the notes inside of both files.
ActiveRecord Relationships
- Video for lecture: https://www.youtube.com/watch?v=23vJacmW88k
- Lecture code: https://github.com/alcastaneda/active_record_lesson