Fix edit error
This commit is contained in:
parent
0eb4bf5b37
commit
8a94eeeee8
|
@ -43,7 +43,7 @@ class Panel::Dictionary::BackEnd::DictionaryVocabCategorysController < OrbitBack
|
||||||
def edit
|
def edit
|
||||||
@dictionary_vocab_category = DictionaryVocabCategory.find(params[:id])
|
@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|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
|
@ -72,11 +72,11 @@ class Panel::Dictionary::BackEnd::DictionaryVocabCategorysController < OrbitBack
|
||||||
def update
|
def update
|
||||||
@dictionary_vocab_category = DictionaryVocabCategory.find(params[:id])
|
@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|
|
respond_to do |format|
|
||||||
if @dictionary_vocab_category.update_attributes(params[:dictionary_vocab_category])
|
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.xml { head :ok }
|
||||||
format.js
|
format.js
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue