Dashboard: Friends #10
Labels
ActiveRecord
Pertains to ActiveRecord
Core
Core project requirement
paired commit
This issue should be completed as a pair.
solo spike first
Should timebox to research individually before discussing with partner.
As an authenticated user,
I see a section for friends,
In this section, there should be a text field to enter a friend's email and a button to "Add Friend"
Scenarios:
If I have not added any friends there should be a message. "You currently have no friends".
If I have added friends, I should see a list of all my friends.
Details: Users should be able to add a friend by their email address, as long as, the friend is a user of our application and exists in our database.
Example:
Bugs Bunny and Lola Bunny are users of our application, but Daffy Duck is not.
[email protected]
to add friend it will be successful and Lola should show up as Bugs Bunny's friend.[email protected]
to add friend it should give an error message that the user does not exist.Tips: You'll want to research self-referential
has_many through
. Here is a good starting point to understand the concept. You will probably need to do more googling but that's part of the fun ;)The text was updated successfully, but these errors were encountered: