Skip to content

Instantly share code, notes, and snippets.

@rwehresmann
Created May 12, 2019 20:00
Show Gist options
  • Select an option

  • Save rwehresmann/e95526c8fc5b43107e5c82253a51ee6c to your computer and use it in GitHub Desktop.

Select an option

Save rwehresmann/e95526c8fc5b43107e5c82253a51ee6c to your computer and use it in GitHub Desktop.
class HomeController < ApplicationController
before_action :authenticate_user
def index
render json: current_user || 'The user isn\'t authenticated'.
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment