Skip to content

Instantly share code, notes, and snippets.

@rwarbelow
Created October 26, 2015 01:24
Show Gist options
  • Save rwarbelow/c3575b4e49641c02fe18 to your computer and use it in GitHub Desktop.
Save rwarbelow/c3575b4e49641c02fe18 to your computer and use it in GitHub Desktop.
Intro to Rails Routing Warm-Up Questions
  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 web app?

  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?

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