Skip to content

Commit c597e5b

Browse files
authored
Update routing.md
Controller name should be pluralised
1 parent 57d59a6 commit c597e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ GET /users/17
3434
If the first matching route is:
3535

3636
```ruby
37-
get "/users/:id", to: "user#show"
37+
get "/users/:id", to: "users#show"
3838
```
3939

4040
The request is matched to the `UsersController` class's `show` action with `{ id: '17' }` in the `params` hash.

0 commit comments

Comments
 (0)