in app/controllers/microposts_controller.rb [32:36]
def correct_user @micropost = current_user.microposts.find_by(id: params[:id]) redirect_to(root_url, status: :see_other) if @micropost.nil? end