Fork this gist. Answer the questions to your best ability and with limited research. No need to post your gist in the comments.
-
What is the purpose of the router in a Rails project?
-
What routes would be provided to you with the line
resources :items
? -
What does
root :to => "items#index"
represent? How would you access that route in a browser? -
What rake task is useful when looking at routes, and what information does it give you?
-
How would you interpret this output:
items GET /items(.:format) items#index
-
What is one major similiarity between Rails routing + controllers and the Sinatra projects we've been building?
-
What is one major difference between Rails routing + controllers and the Sinatra projects we've been building?
Alisher Sadikov: https://gist.github.com/alishersadikov/1f3f3d3ca457c5ac5ce2708e03629ddb