In the software development world CRUD refers to Create, Read, Update and Delete.
Let's add following line to
Now let's see all the routes.
1bundle exec rake routes
|VERB||URI Pattern||Controller#Action||Used for||CRUD|
|POST||/books||books#create||Create a book||CREATE|
|GET||/books/new||books#new||Form for a new book||READ|
|GET||/books/:id||books#edit||Form for editing book||READ|
|GET||/books/:id||books#show||Show info about book||READ|
|PATCH||/books/:id||books#update||Update info about book||UPDATE|
|PUT||/books/:id||books#update||Update info about book||UPDATE|
|DELETE||/books/:id||books#destroy||Delete info about book||DELETE|
In the above table for we have added a new column at the end. As we can see each of those seven actions could be assigned to one of these four operations - Create, Read, Update and Delete.
REST is an architectural system to deal with data through HTTP protocols. Typically software applications create RESTful apis to handle CRUD operations.
We are not going to check in changes done to the files.
1git clean -fd