Skip to content

Instantly share code, notes, and snippets.

@schneems
Created July 1, 2012 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save schneems/3029994 to your computer and use it in GitHub Desktop.
Save schneems/3029994 to your computer and use it in GitHub Desktop.
Databases and Rails Recap Quiz for Week 4
## 1) What does MVCr stand for?
## 2) In what file do we store 'r' from MVCr ?
## 3) What two components make up a route
## 4) Why are Rails routes REST(ful) ?
## 5) Match the data operations to the HTTP Verbs
[GET, POST, DELETE, PUT]
1) Create
2) Read
3) Update
4) Destroy
## 6) Fill out the values below based on this log entry:
Started GET "/products/new" for 127.0.0.1 at 2012-06-28 11:33:36 -0700
Processing by ProductsController#new as HTML
Rendered products/new.html.erb within layouts/application (0.4ms)
Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.0ms)
Was the request successful, why or why not?
What view file was rendered?
What path was this request to ?
What Controller was used ?
## 7) Build a route based on the log entry in the last exercise that maps from the correct url and verb to the correct controller and view.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment