Skip to content

luigirazum/rails-yelp-mvp

Repository files navigation

Routing / Controllers

Asking yourself what routes you need is a very important step in your web-app building process. Routes should exactly mirror your product’s user stories. So let’s define our minimal product here:

  1. A visitor can see the list of all restaurants.
  • GET "restaurants"
  1. A visitor can add a new restaurant, and be redirected to the show view of that new restaurant.
  • GET "restaurants/new"
  • POST "restaurants"
  1. A visitor can see the details of a restaurant, with all the reviews related to the restaurant.
  • GET "restaurants/38"
  1. A visitor can add a new review to a restaurant
  • GET "restaurants/38/reviews/new"
  • POST "restaurants/38/reviews"

And that’s it!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published