removed passing of useless params, updated placeholder for user textcomplete

This commit is contained in:
MrYummy
2017-06-18 13:11:36 -04:00
parent deba1b76e3
commit 0c939f044c
3 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -2,13 +2,12 @@
<h1>
<%= title @forum %>
<% params[:id] = params[:id].split("-")[0] %>
<%= link_to "Search Threads", forumthreads_path(params.except("action", "controller")), class: "btn blue right" %>
<% params[:id] = @forum.id %>
<%= link_to "Search Threads", forumthreads_path(params.to_hash), class: "btn blue right" %>
</h1>
<% if @forum.can_write?(current_user) %>
<p>
<%= link_to "New thread", new_forumthread_path(forum: @forum), class: "btn blue" %>
<% params[:id] = params[:id].split("-")[0] %>
</p>
<% end %>