https://github.com/luigirazum/rails-yelp-mvp
https://github.com/luigirazum/rails-yelp-mvp
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/luigirazum/rails-yelp-mvp
- Owner: luigirazum
- Created: 2020-11-11T17:17:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-12T05:13:42.000Z (almost 5 years ago)
- Last Synced: 2025-01-11T01:12:01.767Z (9 months ago)
- Language: Ruby
- Size: 173 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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"2. A visitor can add a new restaurant, and be redirected to the show view of that new restaurant.
- GET "restaurants/new"
- POST "restaurants"3. A visitor can see the details of a restaurant, with all the reviews related to the restaurant.
- GET "restaurants/38"4. A visitor can add a new review to a restaurant
- GET "restaurants/38/reviews/new"
- POST "restaurants/38/reviews"And that’s it!