This commit is contained in:
yystopf 2024-06-04 17:14:30 +08:00
parent 750a032f3f
commit e09dbfeba5
1 changed files with 2 additions and 2 deletions

View File

@ -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] = "创建消息模板成功"