From c86e52dee95af2100bda6a0eca7572009ab3788a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 7 May 2010 14:07:39 +0100 Subject: [PATCH] Preserve the page number when submitting the form --- app/views/user/list.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/user/list.html.erb b/app/views/user/list.html.erb index c91ce71e6..02378b451 100644 --- a/app/views/user/list.html.erb +++ b/app/views/user/list.html.erb @@ -3,7 +3,10 @@

<%= t('user.list.heading') %>

<% 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] %>
-- 2.43.2