Handy Rails Tips

There are 7 REST actions

The Ruby on Rails documents themselves mention “the 7 default CRUD actions” (index, new, create, show, edit, update, and destroy).

These methods are defaults in the sense that they are build in conventions that Rails offers, which can be configured as required. But these actions have no relation to the REST protocol.

REST doesn’t make any mention of actions, or how they should be named. REST is completely agnostic to how URLs, resources, and their actions are named.

REST emphasises having consistent references (URIs) for individual resources, and making changes to the state of resources via HTTP requests.