Create a new restaurant
In your browser at http://127.0.2.2:3000/restaurants, you can
scroll to the bottom of the list and click the New
restaurant link to navigate to the /restaurants/new
route. On
this page, you can fill out the form to create a new Restaurant
model and save it to MongoDB.
The following sample values satisfy the filter criteria so that the document will appear in the list of restaurants:
Name: Wild Earth Company
Cuisine: American
Borough: Queens
Click the Create Restaurant button to create the restaurant model and save it.
View the data
Refresh http://127.0.2.2:3000/restaurants in your web browser
to view the new Restaurant
entry that you submitted at the
bottom of the list.
Note
If you run into issues, ask for help in the MongoDB Stack Overflow tag or the MongoDB Reddit community. You can also submit feedback by using the Rate this page tab on the right side of this page.