class Admin::HomeController < ApplicationController before_action :authenticate_admin! layout 'admin' def index @adm = Admin.all end end