I’m sad

Section 9.4.2: Undefined method 'admin?' for nil:NilClass

Getting an error for "DELETE 'destroy' as a non-signed-in user should deny access" saying there's an undefined method 'admin?'. Is it because admin? is being accessed without a user being signed in at all? How can I prevent this? I may have overlooked some code somewhere...
7 people have
this question