app/controllers/application_controller.rb
def signed_in_user
      if signed_in?
        return true
      else
        redirect_to signin_url and return false
      end
    end
# Requires a user to be signed in.
Requires a user to be signed in.
Requires a user to be signed in .
def signed_in_user
      if signed_in?
        return true
      else
        redirect_to signin_url and return false
      end
    end
def signed_in_user if signed_in? return true else redirect_to signin_url and return false end end
Requires a user to be signed in.
Requires a user to be signed in .