Take 30 minutes to discuss the following questions with your table group.
-
What are the seven conventional REST routes for a pizza resource? For each route list the HTTP verb, path and rails controller/action pair
-
What benefits does naming a route provide? (e.g. get '/pizzas, to: 'pizzas#index, as: 'pizzas')
-
Assuming you are using the standard REST routes, what rails built-in methods can be used to write concise routes?
-
What are the steps that Rails will take to implement the use cases below? List the verb/path, controller/action and associated SQL.
- Display a list of resources
- Delete a resource
- Create a new resource
- Display one resource