Adding public following and followers pages, fix #3
This commit is contained in:
parent
c349200761
commit
71ae4dd3d2
14 changed files with 220 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue