diff --git a/app/controllers/friendships_controller.rb b/app/controllers/friendships_controller.rb index 31f91da..50c12a6 100644 --- a/app/controllers/friendships_controller.rb +++ b/app/controllers/friendships_controller.rb @@ -3,7 +3,6 @@ class FriendshipsController < ApplicationController def index @friends = current_user.friends - @friendships = Friendship.all end def create diff --git a/app/views/friendships/index.html.erb b/app/views/friendships/index.html.erb index ddb29a2..fbc69aa 100644 --- a/app/views/friendships/index.html.erb +++ b/app/views/friendships/index.html.erb @@ -8,10 +8,11 @@
- <% @friends.each do |friendship| %> + <% @friends.each do |friend| %>