class PagesController < ApplicationController
    
    def home
        
    end
    
    def about
        
    end
    
end
class PagesController < ApplicationController

    def home
        redirect_to articles_path if logged_in?
    end

    def about

    end

end

Add redirection to root if the a uses is logged in
Add redirection to root if the a uses is logged in

When a user in session try to go to the home route, he is redirected to the articles page