From 8a94eeeee8d0aca716d84a198433895b7d7e8083 Mon Sep 17 00:00:00 2001 From: Bernie Chiu Date: Thu, 22 Aug 2013 16:45:04 +0800 Subject: [PATCH] Fix edit error --- .../back_end/dictionary_vocab_categorys_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocab_categorys_controller.rb b/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocab_categorys_controller.rb index 85b3db6a0..a8855dad3 100644 --- a/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocab_categorys_controller.rb +++ b/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocab_categorys_controller.rb @@ -43,7 +43,7 @@ class Panel::Dictionary::BackEnd::DictionaryVocabCategorysController < OrbitBack def edit @dictionary_vocab_category = DictionaryVocabCategory.find(params[:id]) - @url = panel_dictionary_back_end_dictionary_vocab_category_path(@dictionary_vocab_category) + @url = panel_dictionary_back_end_dictionary_vocab_category_path(@dictionary_vocab_category) respond_to do |format| format.html @@ -72,11 +72,11 @@ class Panel::Dictionary::BackEnd::DictionaryVocabCategorysController < OrbitBack def update @dictionary_vocab_category = DictionaryVocabCategory.find(params[:id]) - @url = panel_archive_back_end_dictionary_vocab_category_path(@dictionary_vocab_category) + @url = panel_dictionary_back_end_dictionary_vocab_category_path(@dictionary_vocab_category) respond_to do |format| if @dictionary_vocab_category.update_attributes(params[:dictionary_vocab_category]) - format.html { redirect_to(panel_archive_back_end_dictionary_vocab_categorys_url, :notice => t('dictionary_vocab_category.update_dictionary_vocab_category_success')) } + format.html { redirect_to(panel_dictionary_back_end_dictionary_vocab_categorys_url, :notice => t('dictionary_vocab_category.update_dictionary_vocab_category_success')) } # format.xml { head :ok } format.js else