Here is an article that gives detailed explaination of this association with the following example:
“A person having one amazon pay account through its amazon account.”
Must accomplish the following:
- Able to associate 3 tables/models through
has_one_through
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 git@github.com:JuzerShakir/has_one_through.git
cd has_one_through
bundle install
rails c