Skip to content

Commit c811520

Browse files
committed
Make pagination links render correctly.
1 parent 23e6ea1 commit c811520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/blog/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pageable: true
77
<p>Page <%= page_number %> of <%= num_pages %></p>
88

99
<% if prev_page %>
10-
<p><%= link_to 'Previous page', prev_page %></p>
10+
<p><%= link_to 'Previous page', prev_page.url %></p>
1111
<% end %>
1212
<% end %>
1313

@@ -24,6 +24,6 @@ pageable: true
2424

2525
<% if paginate %>
2626
<% if next_page %>
27-
<p><%= link_to 'Next page', next_page %></p>
27+
<p><%= link_to 'Next page', next_page.url %></p>
2828
<% end %>
2929
<% end %>

0 commit comments

Comments
 (0)