From 4e1b6b430b58c1f6191af89f55c5c498e7a65e6d Mon Sep 17 00:00:00 2001 From: MrYummy Date: Tue, 4 Jul 2017 22:57:31 +0200 Subject: limited params in params_list to the 6 queries --- app/views/forumthreads/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/forumthreads/index.html.erb b/app/views/forumthreads/index.html.erb index bd68e29..02e425b 100644 --- a/app/views/forumthreads/index.html.erb +++ b/app/views/forumthreads/index.html.erb @@ -1,5 +1,5 @@ <%= link_to "Forums", forums_path %> → -<% params_list = params.except(:controller, :action) %> +<% params_list = params.slice(:query, :title, :content, :author, :label, :reply) %> <% if params_list.any? %> <%= link_to "All Threads", forumthreads_path %> → Search Results <% else %> -- cgit v1.2.3