johnLeavell / photogram-associations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Photogram Associations

In this project, we'll re-write our association accessor methods using ActiveRecord's powerful Association helpers.

There are no automated tests; this is just for practice. Play around in the rails console as you make changes to ensure that the changes you are making are having the desired effects.

Use this tool to help plan out your new association methods:

https://association-accessors.firstdraft.com/

Note that the above tool doesn't yet support Scoped Associations. As a stretch goal, read up on them here and see if you can figure out how to use them to build accepted_sent_friend_requests, leaders, feed, and discover.

About


Languages

Language:Ruby 98.2%Language:Dockerfile 0.8%Language:HTML 0.8%Language:CSS 0.1%Language:Shell 0.0%Language:JavaScript 0.0%Language:Procfile 0.0%