can display relation between author

This commit is contained in:
Rueshyna authored and chris committed 2012-12-04 00:31:46 +08:00
1 parent f89a6194c4
commit 9759a32394
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