Skip to content

Commit ae614d3

Browse files
committed
Squash routing output in Getting Started guide [ci-skip]
This prevents some unexpected line wrapping.
1 parent 0dc0039 commit ae614d3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

guides/source/getting_started.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -841,15 +841,15 @@ You'll see this in the output which are the routes generated by
841841
`resources :products`
842842

843843
```
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
853853
```
854854

855855
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
10761076
helpers you can use for generating URLs with Ruby code.
10771077

10781078
```
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
10821082
```
10831083

10841084
These route prefixes give us helpers like the following:

0 commit comments

Comments
 (0)