Fix edit error
This commit is contained in:
parent
0eb4bf5b37
commit
8a94eeeee8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue