Fix edit error

This commit is contained in:
Bernie Chiu 2013-08-22 16:45:04 +08:00 committed by chris
parent 0eb4bf5b37
commit 8a94eeeee8
1 changed files with 3 additions and 3 deletions

View File

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