Action names:
- index
- new
- show
- create
- edit
- update
- destroy
This actions map to crud operations (create, read, update and delete).
*New --> provides the presentation layer (ability to make modifications)
*Create --> provides the persistence layer (saved to the database)
resources :decks
If I ever have a hard time deciding what controller or action to use, just try saying it outloud: "I'm creating a user". "I'm creating a deck." "I'm updating a deck". --> This tells the name of the controller and the action.
I should't go outside of these set of 7 actions (summarized by "resources").