click below
click below
Normal Size Small Size show me how
Rails Routing
Resources
| HTTP Verb & Path | Controller Action | Used for |
|---|---|---|
| POST /collection | collection#create | create a new member of collection |
| GET /collection/:id | collection#show | display a specific member of collection collection_singular_path (member_object) |
| GET /collection/:id/edit | collection#edit | return an HTML form for editing a member of collection (edit_collection_singular_path(member_object)) |
| PATCH/PUT /collection/:id | collection#update | update a specific member of collection |
| DELETE /collection/:id | collection#destroy | delete a specific member of collection |
| GET /collection | collection#index | display a list of all collection members (collection_path) |
| GET /collection/new | collection#new | return an HTML form for creating a new member of (new_collection_singular_path) |