class PostsController < ApplicationController before_action :authenticate! def index @site = find_site end def show @site = find_site @post = find_post(@site) end end