主类别

This commit is contained in:
caishi 2018-02-09 15:54:49 +08:00
parent 8d42756bdc
commit ce939c57a8
1 changed files with 1 additions and 1 deletions

View File

@ -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