From 12ffc286817dbe5469d07be21caf13be053151bf Mon Sep 17 00:00:00 2001 From: jomo Date: Mon, 21 Apr 2014 01:48:23 +0200 Subject: [PATCH] bugfixes --- app/controllers/threadreplies_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/threadreplies_controller.rb b/app/controllers/threadreplies_controller.rb index f00e5d1..8b08bf3 100644 --- a/app/controllers/threadreplies_controller.rb +++ b/app/controllers/threadreplies_controller.rb @@ -19,11 +19,11 @@ class ThreadrepliesController < ApplicationController redirect_to forumthread_path(@reply.thread) + "#reply-#{@reply.id}", notice: 'Reply created!' else flash[:alert] = "Could not create reply." - redirect_to Blogpost.find(params[:forumthread_id]) + redirect_to Forumthread.find(params[:forumthread_id]) end else flash[:alert] = "You are not allowed to create replies." - redirect_to Blogpost.find(params[:forumthread_id]) + redirect_to Forumthread.find(params[:forumthread_id]) end end