0
0
Fork 0

Adding public following and followers pages, fix #3

This commit is contained in:
Eugen Rochko 2016-03-19 14:02:30 +01:00
parent c349200761
commit 71ae4dd3d2
14 changed files with 220 additions and 28 deletions

View file

@ -13,6 +13,14 @@ class AccountsController < ApplicationController
end
end
def followers
@followers = @account.followers.paginate(page: params[:page], per_page: 6)
end
def following
@following = @account.following.paginate(page: params[:page], per_page: 6)
end
private
def set_account