limited params in params_list to the 6 queries

This commit is contained in:
MrYummy
2017-07-04 22:57:31 +02:00
parent f90257fe73
commit 4e1b6b430b

View File

@@ -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 %>