can display relation between author
This commit is contained in:
1 parent
6d2fa673c7
commit
5660ff8f03
5 files changed
+22
-7
No files matched your search
@@ -1,6 +1,7 @@
|
||||
class Desktop::CoAuthorsController < ApplicationController
|
||||
def index
|
||||
@co_authors = CoAuthor.where(name_id: current_user.id)
|
||||
@co_author_relations = CoAuthorRelation.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html { render :layout => false}
|
||||
@@ -27,6 +28,7 @@ class Desktop::CoAuthorsController < ApplicationController
|
||||
|
||||
def edit
|
||||
@co_author = CoAuthor.find(params[:id])
|
||||
@co_author_relations = CoAuthorRelation.all
|
||||
respond_to do |format|
|
||||
format.html { render :layout => false}
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user