diff options
author | MrYummy <elemental428@gmail.com> | 2017-06-02 19:22:04 +0200 |
---|---|---|
committer | MrYummy <elemental428@gmail.com> | 2017-06-18 13:11:36 -0400 |
commit | 0c939f044ccd08dc741f3afaca91dbeb9b0d4b1b (patch) | |
tree | ca4054a686fff421277f7ce65eab003f1e18857e /app/views/forums/show.html.erb | |
parent | deba1b76e39c3528ca66e92c94a91eb3a8b4526b (diff) |
removed passing of useless params, updated placeholder for user textcomplete
Diffstat (limited to 'app/views/forums/show.html.erb')
-rw-r--r-- | app/views/forums/show.html.erb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb index 9dcdad8..36741d9 100644 --- a/app/views/forums/show.html.erb +++ b/app/views/forums/show.html.erb @@ -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 %> |