diff options
Diffstat (limited to 'app/controllers/admin/services_controller.rb')
-rw-r--r-- | app/controllers/admin/services_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/admin/services_controller.rb b/app/controllers/admin/services_controller.rb index 46133588332..39aefde7f7d 100644 --- a/app/controllers/admin/services_controller.rb +++ b/app/controllers/admin/services_controller.rb @@ -1,3 +1,4 @@ +#encoding: utf-8 class Admin::ServicesController < Admin::ApplicationController before_action :service, only: [:edit, :update] @@ -8,14 +9,14 @@ class Admin::ServicesController < Admin::ApplicationController def edit unless service.present? redirect_to admin_application_settings_services_path, - alert: "Service is unknown or it doesn't exist" + alert: "服务未知或不存在" end end def update if service.update_attributes(application_services_params[:service]) redirect_to admin_application_settings_services_path, - notice: 'Application settings saved successfully' + notice: '应用设置保存成功' else render :edit end |