4. Editor Role II


#1

before_action :require_editor, only: [:show, :edit]
Why wont this work?


#2

Has it worked since then?


#3

First, check if you define require_editor method. Then try to put before_action require_editor below the require_user

before_action :require_user, only: [:show, :edit, :update, :destroy]
before_action :require_editor, only: [:show, :edit]