2023-05-24 - Advanced Routes


main topics


Nested resources

Typical nested resources for restaurants and reviews:

routes.rb

resources :restaurants do
  resources :reviews, only: %i[new create]
end

resources :reviews, only: :destroy

Challenges

Yelp MVP

Validation


Rails Simple Airbnb

Background & Objectives

We want to build a simple airbnb clone (like this one). These should be all the user stories of our app:

There is no rake for this challenge.