make labels editable in threads
This commit is contained in:
@@ -83,7 +83,7 @@ class ForumthreadsController < ApplicationController
|
||||
end
|
||||
|
||||
def thread_params(add = [])
|
||||
a = [:title, :content]
|
||||
a = [:title, :content, :label_id]
|
||||
a += add
|
||||
params.require(:forumthread).permit(a)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user