@@ -841,15 +841,15 @@ You'll see this in the output which are the routes generated by
841
841
` resources :products `
842
842
843
843
```
844
- Prefix Verb URI Pattern Controller#Action
845
- products GET /products(.:format) products#index
846
- POST /products(.:format) products#create
847
- new_product GET /products/new(.:format) products#new
848
- edit_product GET /products/:id/edit(.:format) products#edit
849
- product GET /products/:id(.:format) products#show
850
- PATCH /products/:id(.:format) products#update
851
- PUT /products/:id(.:format) products#update
852
- DELETE /products/:id(.:format) products#destroy
844
+ Prefix Verb URI Pattern Controller#Action
845
+ products GET /products(.:format) products#index
846
+ POST /products(.:format) products#create
847
+ new_product GET /products/new(.:format) products#new
848
+ edit_product GET /products/:id/edit(.:format) products#edit
849
+ product GET /products/:id(.:format) products#show
850
+ PATCH /products/:id(.:format) products#update
851
+ PUT /products/:id(.:format) products#update
852
+ DELETE /products/:id(.:format) products#destroy
853
853
```
854
854
855
855
You'll also see routes from other built-in Rails features like health checks.
@@ -1076,9 +1076,9 @@ Rails provides helper methods for generating paths and URLs. When you run
1076
1076
helpers you can use for generating URLs with Ruby code.
1077
1077
1078
1078
```
1079
- Prefix Verb URI Pattern Controller#Action
1080
- products GET /products(.:format) products#index
1081
- product GET /products/:id(.:format) products#show
1079
+ Prefix Verb URI Pattern Controller#Action
1080
+ products GET /products(.:format) products#index
1081
+ product GET /products/:id(.:format) products#show
1082
1082
```
1083
1083
1084
1084
These route prefixes give us helpers like the following:
0 commit comments