The new Friendship model works. Adapts the PendingFriendship model to work similarly. Does not do the migration yet.
Runs the migration to complete the changes to PendingFriendships.
Fixes a few small cosmetic issues. Refactors part of the PendingFriends controller to account for the absence of the old helper methods, and the presence of the new associations in their place. Next, editing the views accordingly.
Refactors the index view. Now, need to actually make the two partials that go in it.
Now the friend requests page should contain both requests sent and requests received, with appropriate buttons for the received ones. These buttons (like most so far) do not do anything yet.
Adds routes to pending friendships, with the goal of having a button on users' pages to add the friend.
Adds routes and create/destroy controller actions for actual Friendships. Does not include the logic for destroying PendingFriendships yet.
Changes the buttons in the friend request interface to be button-tos that interact with controller actions.
More completely refactors using associations.
Adds helper method in User that returns all the friends (rather than distinguishing between friends and inverse_friends)
Adds the third clause for what happens when we view a user show page.
Adds minor touches to form partials. They seem to work, though we don't have friendships yet.
Adds ugly way to delete pending friendships when a friend request is accepted. Maybe refactor this later with one model and toggling?
Changes the button-to to a fully-fledged form that takes two hidden inputs, so the controller knows which pending_friendship it's dealing with.
Refactors the non-friend show page so that's also a form; we need those parameters! Otherwise, the pending friendship saves correctly.
Fixes the sign-out issue. It was about 'redirect-to back.'
Adds a button to actually see all the pending friendships for the current user.
Edits a small bug in the pending_friendships model (just forgetting to change wording).
Changes the pending_friendships#index method to deal with the join table, rather than users.
Changes the association for getting the appropriate pending friendship to getting the first element of an array. This was an ActiveRecord syntax issue.