Commit 26f9ddef by Đường Sỹ Hoàng

Final commit

parent 87f261ef
...@@ -9,6 +9,7 @@ class UsersController < ApplicationController ...@@ -9,6 +9,7 @@ class UsersController < ApplicationController
def show def show
@user = User.find(params[:id]) @user = User.find(params[:id])
redirect_to root_url and return unless @user.activated
@microposts = @user.microposts.paginate(page: params[:page]) @microposts = @user.microposts.paginate(page: params[:page])
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment