配置完点确定,自动跳转

This commit is contained in:
huang 2016-03-31 19:14:58 +08:00
parent 4797cbe65d
commit ebb2f30f3b
1 changed files with 5 additions and 1 deletions

View File

@ -220,7 +220,11 @@ class OrganizationsController < ApplicationController
#@organization.name = params[:organization][:name]
@organization.save
respond_to do |format|
format.html { redirect_to setting_organization_path(@organization)}
if @organization.show_mode == 1
format.html { redirect_to organization_path(@organization)}
else
format.html { redirect_to setting_organization_path(@organization)}
end
end
end