simple_crm/app/controllers/admin/article_controller.rb

41 lines
321 B
Ruby

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