Find current player friend requests
Find friends in show method
Add references to friendship and has_friend?(friend) method
Show friend requests
Show add friend button
Add friendship's routes
Ignore database.yml
Add friendship migration
Line after and before method
Friendship controller and model
Friendship spec
When a player added other player, they create a relationship and no can add again.
Destroy the friendship when a player is destroyed
Removing route duplicated
Add Friendship routing spec
Change routes to friendship using post method
Add shoulda-matchers gem
Change friendships route method to put
Add test that valid if Player to have a has_many association called friendships
Add shoulda/matchers require