projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c86e52d
)
Preserve parameters in pagination links
author
Tom Hughes
<tom@compton.nu>
Fri, 7 May 2010 13:08:07 +0000
(14:08 +0100)
committer
Tom Hughes
<tom@compton.nu>
Fri, 7 May 2010 13:08:07 +0000
(14:08 +0100)
app/views/user/list.html.erb
patch
|
blob
|
history
diff --git
a/app/views/user/list.html.erb
b/app/views/user/list.html.erb
index 02378b451bfc295ec92c872df8257789d1897fa9..fac7c442fd375d5152628b9aedda4ae0db226641 100644
(file)
--- a/
app/views/user/list.html.erb
+++ b/
app/views/user/list.html.erb
@@
-18,7
+18,7
@@
:count => @user_pages.current_page.last_item - @user_pages.current_page.first_item + 1
%>
<% if @user_pages.page_count > 1 %>
- | <%= pagination_links_each(@user_pages, {}) { |n| link_to n,
:page => n
} %>
+ | <%= pagination_links_each(@user_pages, {}) { |n| link_to n,
params.merge(:page => n)
} %>
<% end %>
</td>
<td>