Skip to content

Instantly share code, notes, and snippets.

@case-eee
Last active May 11, 2021 21:32
Show Gist options
  • Save case-eee/9ca3c160b12297caff7e7b5c4126a340 to your computer and use it in GitHub Desktop.
Save case-eee/9ca3c160b12297caff7e7b5c4126a340 to your computer and use it in GitHub Desktop.
Authentication Warm Up

Fork this gist and answer the following questions.

  • What's the difference between Authentication and Authorization?
  • Why are both necessary for securing our applications?
  • What's a before_action filter in Rails?
  • How can we scope a filter down to only work with specific actions?
  • What's an enum attribute in ActiveRecord? Why would we ever want to use this?
  • When thinking about Authorization, why might we want to namespace a resource?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment