diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index 38c68d6..7bc7df7 100755 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -11,13 +11,14 @@
<% i = 0 %> + <% i += (params[:page].to_i - 1 ) * 10 if params[:page] %> <% @posts.each do |post| %> <% i += 1 %> - <% if !post.user.blank? %> + <% if !post.user.blank? %>