Skip to content

Instantly share code, notes, and snippets.

@rwarbelow
Created October 26, 2015 01:24
Show Gist options
  • Select an option

  • Save rwarbelow/c3575b4e49641c02fe18 to your computer and use it in GitHub Desktop.

Select an option

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?

@jeneve

jeneve commented Apr 4, 2016

Copy link
Copy Markdown
<script src="https://gist.github.com/jeneve/2b935eb7a73e74877e63097b536d4121.js"></script>

@kamiboers

Copy link
Copy Markdown

@lingtran

lingtran commented Apr 4, 2016

Copy link
Copy Markdown

@thomschlereth

Copy link
Copy Markdown

@theonlyrao

Copy link
Copy Markdown

@jdliss

jdliss commented Apr 4, 2016

Copy link
Copy Markdown

@deborahleehamel

Copy link
Copy Markdown

@ryanflach

Copy link
Copy Markdown

@livecodelife

Copy link
Copy Markdown

@Automatic365

Copy link
Copy Markdown

@zackforbing

Copy link
Copy Markdown

@matthewrpacker

Copy link
Copy Markdown

@dtinianow

Copy link
Copy Markdown

@GSmes

GSmes commented Jul 11, 2016

Copy link
Copy Markdown

@cconcannon

Copy link
Copy Markdown

@allindow

Copy link
Copy Markdown

@kbs5280

kbs5280 commented Jul 12, 2016

Copy link
Copy Markdown

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