# Help No route (path) could be generated for :book

**URL:** <https://discourse.hanakai.org/t/help-no-route-path-could-be-generated-for-book/503>\
**Category:** questions\
**Created:** [March 26, 2019, 6:55am UTC](https://discourse.hanakai.org/t/help-no-route-path-could-be-generated-for-book/503 "2019-03-26T06:55:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adchenko.hasnayavic](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/adchenko.hasnayavic/32/393_2.png) [@adchenko.hasnayavic](https://discourse.hanakai.org/u/adchenko.hasnayavic)\
**Post date:** [March 26, 2019, 6:55am UTC](https://discourse.hanakai.org/t/help-no-route-path-could-be-generated-for-book/503/1 "2019-03-26T06:55:11Z")

</div>

Hello & Greetings, I’m new to Hanami, nice to meet you all.

So i have successfully follow the getting started in hanami guides, then i try to add show link to list books index, so i add this in index\_spec.rb : `expect(rendered).to include('Show')`.

If i run it of course it gives me error. then i generate new action called `books#show` and change my routes.rb to `resources :books, only: [:index, :show, :new, :create]`

after that i add the show link to my templates `<%= link_to "Show", routes.book_path(book.id) %>`

i run again the test and show this error :  
`Hanami::Routing::InvalidRouteException: No route (path) could be generated for :book - please check given arguments`

so did i missing something? i’m sure that i have `show.rb` in my controller & views, i’ve tried it in the ui (running hanami server without passing the test) the route works pretty well.

Thank you.
