- Name all the 7 (or 8) routes exposed by the
resources
keyword in theroutes.rb
file. Also name the 4 named routes, and how the request is routed to the controller/action.
# Assuming you are getting resources :posts
$ rake routes
get '/posts', to: posts#index => posts_path
get '/posts/object', to: posts#show => post_path(object)
get '/posts/object/edit', to: posts#edit => edit_post_path(object)