forked from saurabh/personal-journal
fixed error object
This commit is contained in:
parent
5992be0d19
commit
886bf12b98
|
@ -46,7 +46,7 @@ class Admin::JournalPapersController < OrbitMemberController
|
||||||
format.xml { render :xml => @journal_paper, :status => :created, :location => @journal_paper }
|
format.xml { render :xml => @journal_paper, :status => :created, :location => @journal_paper }
|
||||||
else
|
else
|
||||||
format.html { render action: 'new' }
|
format.html { render action: 'new' }
|
||||||
format.json { render json: @extension.errors, status: :unprocessable_entity }
|
format.json { render json: @journal_paper.errors, status: :unprocessable_entity }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -61,7 +61,7 @@ class Admin::JournalPapersController < OrbitMemberController
|
||||||
format.xml { head :ok }
|
format.xml { head :ok }
|
||||||
else
|
else
|
||||||
format.html { render action: "edit" }
|
format.html { render action: "edit" }
|
||||||
format.json { render json: @extension.errors, status: :unprocessable_entity }
|
format.json { render json: @journal_paper.errors, status: :unprocessable_entity }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue