index and show methods match what the Resour
drop.resource will take care of registering only the routes that have been supplied by the call to makeResource(). In this case, only the index and show routes will be supplied.
-
-Note
-drop.resource also adds useful defaults for OPTIONS requests. These can be overriden.
-
Actions¶
Below is a table describing all of the actions available.
@@ -1912,7 +1908,7 @@ the index and show methods match what the Resour
Updates the specified user, only modifying fields present in the request data.
-delete
+destroy
DELETE
/users/:id
Deletes the specified user.
@@ -1935,8 +1931,24 @@ the index and show methods match what the Resour
/users/:id/edit
Displays a form for editing the specified user.
+
+aboutItem
+OPTIONS
+/users/:id
+Meta action. Displays information about which actions are supported.
+
+
+aboutMultiple
+OPTIONS
+/users
+Meta action. Displays information about which actions are supported.
+
+
+Note
+The aboutItem and aboutMultiple meta actions are implemented automatically if not overridden.
+
Tip
The difference between replace and update is subtle but important: