struggling to get private pages working

I don't know why I'm having so much trouble implementing private pages. I don't know what the next step is... It seems so different from Blocitoff's private topics for some reason. 

If I try to add ```  # scope :visible_to, -> (user) { user ? all : where(public: true) `