Skip to content

Instantly share code, notes, and snippets.

@BrianZanti
Created July 16, 2019 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianZanti/340b1391c3fd786d90046b6c1fbf4031 to your computer and use it in GitHub Desktop.
Save BrianZanti/340b1391c3fd786d90046b6c1fbf4031 to your computer and use it in GitHub Desktop.

Reading:

Questions

You may want to experiment with the topics from the reading in the context of a Rails app before answering these questions.

Routes

  1. What does scope do?
  2. What does module do?
  3. What does namespace do?
  4. If you have a route:
namespace :admin do
  resources :cats
end

What routes does this generate? What controller and action does each route map to?

Filters

  1. What are filters?
  2. How could we use filters to authorize users?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment