Fix the books page's author link, same as a12aae8
.
This commit is contained in:
parent
92a01126a4
commit
bee38a9e5c
|
@ -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>
|
||||
% }
|
||||
|
|
|
@ -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>
|
||||
% }
|
||||
|
|
Loading…
Reference in New Issue