I ran into the following error, even though the method is clearly defined in the next line.
undefined method `before_filter' for AuthorsController:Class
I follow this tutorial .
The code fragment is as follows:
authors_controller.rb
class AuthorsController < ApplicationController before_action :set_author, only: [:show, :edit, :update, :destroy] before_filter :zero_authors_or_authenticated, only: [:new, :create] def zero_authors_or_authenticated
Using Sorcery as Authentication, Windows 10 Visual Code.
Carrein
source share