主类别
This commit is contained in:
parent
8d42756bdc
commit
ce939c57a8
|
@ -48,7 +48,7 @@ class MainCategoriesController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
if @main_category.save
|
||||
format.html { redirect_to main_categories_path, notice: '朱类别创建成功' }
|
||||
format.html { redirect_to main_categories_path, notice: '主类别创建成功' }
|
||||
format.js
|
||||
format.json { render json: @main_category, status: :created, location: @main_category }
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue