Skip to content

Commit 8d50d78

Browse files
author
Landon Gray
committed
Add a missing note about generated route
1 parent 6efdf17 commit 8d50d78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/v2.0/introduction/getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,13 @@ Let's fix that by generating an action for a books index:
380380
bundle exec hanami generate action books.index
381381
```
382382

383-
In addition to generating an action at `app/actions/books/index.rb`, the generator has also added a route in `config/routes.rb`:
383+
In addition to generating an action at `app/actions/books/index.rb`, the generator has also added a route in `config/routes.rb`. The route `get "/home/:id", to: "home.show"` was generated when the generator to create the action home.show was run earlier. :
384384

385385
```ruby
386386
module Bookshelf
387387
class Routes < Hanami::Routes
388388
root to: "home.index"
389+
get "/home/:id", to: "home.show"
389390
get "/books", to: "books.index"
390391
end
391392
end

0 commit comments

Comments
 (0)