From d9b971ab349f7ba3c8d95badee8fb6023588d197 Mon Sep 17 00:00:00 2001 From: Jonas Folvik Date: Mon, 4 Jan 2016 21:49:21 +0100 Subject: [PATCH] Fixed a bug Fixed a bug that made it so when you are editing a reply, you can't go back to the original thread using the "line" of 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} %>