projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68bb9b3
)
Preserve the page number when submitting the form
author
Tom Hughes
<tom@compton.nu>
Fri, 7 May 2010 13:07:39 +0000
(14:07 +0100)
committer
Tom Hughes
<tom@compton.nu>
Fri, 7 May 2010 13:07:39 +0000
(14:07 +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 c91ce71e691db1137355a41822c8274745d9ffa6..02378b451bfc295ec92c872df8257789d1897fa9 100644
(file)
--- a/
app/views/user/list.html.erb
+++ b/
app/views/user/list.html.erb
@@
-3,7
+3,10
@@
<h1><%= t('user.list.heading') %></h1>
<% unless @users.empty? %>
- <% form_tag :status => params[:status], :ip => params[:ip] do %>
+ <% form_tag do %>
+ <%= hidden_field_tag :status, params[:status] if params[:status] %>
+ <%= hidden_field_tag :ip, params[:ip] if params[:ip] %>
+ <%= hidden_field_tag :page, params[:page] if params[:page] %>
<table id="user_list">
<tr>
<td colspan="2">