DEV Community

Brittany
Brittany

Posted on

1 1

Day 34 - #100DaysofCode - New/edit action versus create/update action

When using CRUD and MVC something important to note is the difference to the new/edit action versus the create/update action.

The difference is that a new and edit action simply renders a form. The create and update action handles the action of editing the database. The create action inserts data into the database and the update action will update the database.

Simple concept, but as I practice creating routes in rails I realized how important knowing these concepts are when building an MVC/CRUD application.

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay