Here is an article that gives detailed explaination of this association with the following example: “
A school has many students and a student belongs to a school.
”
Must accomplish the following:
- Able to associate 2 tables or models through
has_many
association.
Run the following commands to execute locally:
The following will install required version of ruby (make sure rvm is installed.)
rvm install x
rvm use x
git clone [email protected]:JuzerShakir/has_many.git
cd has_many
bundle install
rails c