I know that with the following code:
before_action :signed_in?, only: [:new]
the action new will be executed if the signed_in? returns true, but instead if I want the new action to be executed when signed_in? returns false what do I have to do? Do I have to create a new method called, for instance, not_signed_in??
Here it is my signed_in? method
def signed_in?
  !@current_user.nil?
end
 
     
     
    