This is the repository for the LinkedIn Learning course Ruby on Rails 6 Essential Training: Models and Associations. The full course is available from LinkedIn Learning.

This repository has branches for each of the videos in the course. You can use the branch pop up menu in GitHub to switch to a specific branch and take a look at the course at that stage, or you can add /tree/BRANCH_NAME to the URL to go to the branch you want to access.
The branches are structured to correspond to the videos in the course. The naming convention is CHAPTER#_MOVIE#. As an example, the branch named 02_03 corresponds to the second chapter and the third video in that chapter.
Some branches will have a beginning and an end state. These are marked with the letters b for "beginning" and e for "end". The b branch contains the code as it is at the beginning of the movie. The e branch contains the code as it is at the end of the movie. The master branch holds the final state of the code when in the course.
- To use these exercise files, you must have the following installed:
- Ruby
- Ruby on Rails
- MySQL
- Clone this repository into your local machine using the Terminal (Mac), CMD (Windows), or a GUI tool like Sourcetree.
- If you have not already done so, create a MySQL database called
simple_cms_developmentand set up a database user with permission to access it. Add the database user credentials toconfig/database.yml. Navigate to the root of the Rails application and runbundle exec rails otl:import. A script will run and walk you through the steps to import the tables and data you need to run the sample project in the exercise files.
Kevin Skoglund
Founder of NovaFabrica
Check out some of my other courses on LinkedIn Learning.