Archived
bugfixes
This commit is contained in:
@@ -19,11 +19,11 @@ class ThreadrepliesController < ApplicationController
|
|||||||
redirect_to forumthread_path(@reply.thread) + "#reply-#{@reply.id}", notice: 'Reply created!'
|
redirect_to forumthread_path(@reply.thread) + "#reply-#{@reply.id}", notice: 'Reply created!'
|
||||||
else
|
else
|
||||||
flash[:alert] = "Could not create reply."
|
flash[:alert] = "Could not create reply."
|
||||||
redirect_to Blogpost.find(params[:forumthread_id])
|
redirect_to Forumthread.find(params[:forumthread_id])
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
flash[:alert] = "You are not allowed to create replies."
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user