Fix the books page's author link, same as a12aae8.

This commit is contained in:
barnold 2022-09-20 13:19:52 +01:00
parent 92a01126a4
commit bee38a9e5c
2 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@
<td style="text-align:right"><%= $author->books->count %></td>
<td style="padding-left:1em">
<%= link_to($author->name => 'author' =>
{ id => $author->id, page_number => 1}) %>
{ id => $author->id, page_number => 1 }) %>
</td>
</tr>
% }

View File

@ -20,7 +20,8 @@
<tr>
<td><%= $book->title %></td>
<td>
<%= link_to($book->author->name => 'author' => { id => $book->author->id}) %>
<%= link_to($book->author->name => 'author' =>
{ id => $book->author->id, page_number => 1 }) %>
</td>
</tr>
% }