ActionController::UrlGenerationError in Books#show

Showing /app/app/views/books/show.html.erb where line #53 raised:

No route matches {:action=>"show", :controller=>"items", :id=>nil} missing required keys: [:id]
Extracted source (around line #53):
51
52
53
54
55
56
              
<% unless @book_options.exists? %>
<div class="buyBtn"><a href="<%= onlineshop_path(@book.item) %>"><img src="/assets/mobile/books_buy_btn@2x.png" alt="購入する" width="72" height="19"></a></div>
<% end %>
<h3 class="mt20 mb20"><img src="/assets/mobile/books_h3_info@2x.png" alt="作品情報" width="131" height="14"></h3>

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"id"=>"8"}

Response

Headers:

None