This commit is contained in:
parent
750a032f3f
commit
e09dbfeba5
|
@ -11,8 +11,8 @@ class Admins::MessageTemplatesController < Admins::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@message_template = MessageTemplate::CustomTip.new(message_template_params)
|
@message_template = MessageTemplate::CustomTip.new
|
||||||
|
@message_template.attributes = message_template_params
|
||||||
if @message_template.save!
|
if @message_template.save!
|
||||||
redirect_to admins_message_templates_path
|
redirect_to admins_message_templates_path
|
||||||
flash[:success] = "创建消息模板成功"
|
flash[:success] = "创建消息模板成功"
|
||||||
|
|
Loading…
Reference in New Issue