diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index fb9f99e..5465b7c 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -1,5 +1,6 @@ class PostsController < ApplicationController before_action :set_post, only: %i[ show edit update destroy ] + before_action :authenticate # GET /posts or /posts.json def index diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb index d0ae2ad..3c8ba25 100644 --- a/app/views/posts/index.html.erb +++ b/app/views/posts/index.html.erb @@ -1,13 +1,13 @@ -
<%= notice %>
<% end %> - <% content_for :title, "Posts" %> + <% content_for :title, "X Social" %>