|
|
@ -42,7 +42,7 @@ class SystemMessagesController < ApplicationController
|
|
|
|
@system_messages.description = params[:system_message][:description]
|
|
|
|
@system_messages.description = params[:system_message][:description]
|
|
|
|
@system_messages.subject = params[:system_message][:subject]
|
|
|
|
@system_messages.subject = params[:system_message][:subject]
|
|
|
|
@system_messages.user_id = User.current.id
|
|
|
|
@system_messages.user_id = User.current.id
|
|
|
|
@system_messages.save_attachments(params[:attachments])
|
|
|
|
# @system_messages.save_attachments(params[:attachments])
|
|
|
|
respond_to do |format|
|
|
|
|
respond_to do |format|
|
|
|
|
if @system_messages.save
|
|
|
|
if @system_messages.save
|
|
|
|
format.html {redirect_to user_system_messages_path(User.current)}
|
|
|
|
format.html {redirect_to user_system_messages_path(User.current)}
|
|
|
|