can update co-author relation

This commit is contained in:
Rueshyna 2012-12-05 18:02:42 +08:00
parent 9b4a07a2b0
commit b4082a2d60
3 changed files with 1019 additions and 1 deletions

View File

@ -10,6 +10,9 @@ class Desktop::CoAuthorRelationsController < ApplicationController
def edit
@co_author_relation = CoAuthorRelation.find(params[:id])
respond_to do |format|
format.html { render :layout => false}
end
end
def new

View File

@ -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}%>
<% end %>

1015
out Normal file

File diff suppressed because one or more lines are too long