Code Explainers
class ArticlesController < ApplicationController before_action :authenticate_user! before_action :set_article, only: %i[show edit update destroy] before_action :authorize_owner!, only: %i[edit update destroy]