Docs Menu
Docs Home
/ / /
Mongoid
/

Write Data to MongoDB

1

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.

2

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 Community Forums or submit feedback by using the Feedback button in the upper right corner of the page.

Back

View MongoDB Data