-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Rahul Keerthi edited this page Feb 24, 2020
·
3 revisions
Welcome to the Lairbnb wiki!
- show - GET /users/:id to: users#show
- new (Devise)
- create (Devise)
- edit (Devise)
- update (Devise)
- All
index GET /lairs to: lairs#index show GET /lairs/:id to: lairs#show Host - create - new - edit - update - delete
- index
- show GET /bookings/:id to: bookings#show
- create POST /bookings to: bookings#create
- delete
- As a hero, I can see all the lairs available
- As a hero, I can see a specific lair
- As a hero, I can see a specific host
- As a hero, I can see that host's lairs
- As a hero, I can create a booking
- As a hero, I can see a booking
- A user (host) can have many lairs
- A user (hero) can have many bookings
- A user (hero) can have lairs through bookings
- A lair can have many bookings
- A lair belongs to one user (host)
- A booking belongs to one user (hero)
- A booking belongs to one lair
- Must have a unique, and present hero_name
- Must have an alterego
- Must have a unique, and present email
- Must have a password
- Must have an is_hero (boolean)
- Must have title
- Must have a price greater than 0
- Must have a location
- Must have a start_date
- Must have an end_date
- Start_date must be before end_date (optional)