Introduction
Action methods handle requests in a Rails controller. They decide what to do when a user visits a page or sends data.
When you want to show a list of items on a webpage.
When you need to display a form for users to fill out.
When you want to save data sent by a user to the database.
When you want to update or delete existing data.
When you want to redirect users to another page after an action.