用途 | アクション | HTTPメソッド | CRUD | ActiveRecord |
---|---|---|---|---|
一覧表示 | index | GET | Read | .all |
詳細表示 | show | GET | Read | .find(:id) |
新規作成 | create | POST | Create | .create! |
更新 | update | PATCH | Update | .update! |
削除 | destroy | DELETE | Delete | .destroy |
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme