make labels editable in threads

This commit is contained in:
jomo
2015-01-17 18:28:38 +01:00
parent 5f00fc87a3
commit a6c062bde7
8 changed files with 60 additions and 20 deletions

View File

@@ -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