fixed delete function
This commit is contained in:
parent
e06495d4ad
commit
8009c6aa34
|
@ -57,10 +57,10 @@ class Desktop::CoAuthorsController < ApplicationController
|
|||
@co_author = CoAuthor.find(params[:id])
|
||||
@co_author.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to desktop_co_authors_url, :layout => false }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
#respond_to do |format|
|
||||
# format.html { redirect_to desktop_co_authors_url, :layout => false }
|
||||
# format.json { head :no_content }
|
||||
#end
|
||||
end
|
||||
|
||||
def get_co_authors_json
|
||||
|
|
|
@ -80,6 +80,11 @@ class Desktop::JournalPagesController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
@writing_journal = WritingJournal.find(params[:id])
|
||||
@writing_journal.destroy
|
||||
end
|
||||
|
||||
def get_journals_json
|
||||
publications = WritingJournal.where(create_user_id: current_user.id)
|
||||
|
||||
|
|
Reference in New Issue