can update co-author relation
This commit is contained in:
parent
a0cce2ae0d
commit
b89e371393
|
@ -10,6 +10,9 @@ class Desktop::CoAuthorRelationsController < ApplicationController
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
@co_author_relation = CoAuthorRelation.find(params[:id])
|
@co_author_relation = CoAuthorRelation.find(params[:id])
|
||||||
|
respond_to do |format|
|
||||||
|
format.html { render :layout => false}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<%= form_for(@co_author_relations, url: desktop_co_author_relation_path(@co_author_relations), html:{"form-type"=>"ajax_form", "callback-method"=>"coauthorRelationForm"} ) do |f| %>
|
<%= form_for(@co_author_relation, url: desktop_co_author_relation_path(@co_author_relation), html:{"form-type"=>"ajax_form", "callback-method"=>"coauthorRelationForm"} ) do |f| %>
|
||||||
<%= render partial: 'desktop/co_author_relations/form' , locals: {:f => f}%>
|
<%= render partial: 'desktop/co_author_relations/form' , locals: {:f => f}%>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Reference in New Issue