Skip to content

Instantly share code, notes, and snippets.

@JeffCohen
Last active May 15, 2018 18:16
Show Gist options
  • Save JeffCohen/a190b9280171fdec2e1c5540f2eea377 to your computer and use it in GitHub Desktop.
Save JeffCohen/a190b9280171fdec2e1c5540f2eea377 to your computer and use it in GitHub Desktop.
Code for Quiz #3
Rails.application.routes.draw do
get "/" => 'products#index'
get "/products" => 'products#index'
get "/products/:id" => 'products#show'
get "/products/create" => 'products#create'
get "/reviews" => 'reviews#index'
get "/reviews/create" => 'reviews#create'
get "/reviews/:review_id" => 'reviews#show'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment