Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save case-eee/cabe10d53e98e7888e22b30ba7fd4865 to your computer and use it in GitHub Desktop.
Save case-eee/cabe10d53e98e7888e22b30ba7fd4865 to your computer and use it in GitHub Desktop.
Intro to Rails Routing Warm-Up Questions

Fork this gist. Answer the questions to your best ability and with limited research. No need to post your gist in the comments.

  1. What is the purpose of the router in a Rails project?

  2. What routes would be provided to you with the line resources :items?

  3. What does root :to => "items#index" represent? How would you access that route in a browser?

  4. What rake task is useful when looking at routes, and what information does it give you?

  5. How would you interpret this output: items GET /items(.:format) items#index

  6. What is one major similiarity between Rails routing + controllers and the Sinatra projects we've been building?

  7. What is one major difference between Rails routing + controllers and the Sinatra projects we've been building?

@alishersadikov
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment