From 553a15519abe5c0bcc67aaf09c0823639e1838e4 Mon Sep 17 00:00:00 2001 From: Jonas Folvik Date: Sun, 17 Jan 2016 00:44:31 +0100 Subject: [PATCH] Fixed path bug This is a fix for the bug that you couldn't go back to the original thread by clicking the links at the top. --- app/views/threadreplies/edit.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/threadreplies/edit.html.erb b/app/views/threadreplies/edit.html.erb index 645c64d..d3218cd 100644 --- a/app/views/threadreplies/edit.html.erb +++ b/app/views/threadreplies/edit.html.erb @@ -1,6 +1,6 @@ <% title "Edit Thread Reply: #{@reply.thread.title}" %> -<%= link_to @reply.thread.forum.group, forumgroup_path(@reply.thread.forum.group) %> → <%= link_to @reply.thread.forum, @reply.thread.forum %> → <%= link_to @reply.thread %> → Edit reply +<%= link_to @reply.thread.forum.group, forumgroup_path(@reply.thread.forum.group) %> → <%= link_to @reply.thread.forum, @reply.thread.forum %> → <%= link_to @reply.thread, @reply.thread %> → Edit reply

Edit reply

<%= form_for [@reply.thread, @reply] do |f| %> <%= render partial: "md_editor", locals: {name: "threadreply[content]", content: @reply.content} %>