class Admin::ArticleController < ApplicationController before_action :authenticate_admin! layout 'admin' def index @adm = Article.all end def show end def new end def create end def edit end def update end def destroy end def publish end def unpublish end end