Undefined method for `before_filter’

Try using

before_action :zero_authors_or_authenticated, only: [:new, :create]

Instead of

before_filter :zero_authors_or_authenticated, only: [:new, :create]

before_filter has been deprecated in Rails 5.0 and removed in 5.1.

Leave a Comment