fixed edit and new page of co-author

This commit is contained in:
Rueshyna 2012-12-06 11:56:47 +08:00
parent 7a412d4e7e
commit c59c772b55
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,3 @@
<%= form_for @co_author_relation, html: { multipart: true ,"form-type"=>"ajax_form", "callback-method"=>"coAuthorformCallback"} , url: desktop_co_author_path(@co_author_relation) do |f| %>
<%= form_for @co_author, html: { multipart: true ,"form-type"=>"ajax_form", "callback-method"=>"coAuthorformCallback"} , url: desktop_co_author_path(@co_author) do |f| %>
<%= render partial: 'desktop/co_authors/form', locals: {:f => f} %>
<% end %>

View File

@ -1,3 +1,3 @@
<%= form_for @co_author, html: { multipart: true ,"form-type"=>"ajax_form", "callback-method"=>"coAuthorformCallback"} , url: desktop_co_authors_path do |f| %>
<%= render partial: 'desktop/co_author_relations/form', locals: {:f => f} %>
<%= render partial: 'desktop/co_authors/form', locals: {:f => f} %>
<% end %>

View File

@ -0,0 +1,6 @@
require 'spec_helper'
describe "Co-Author pages" do
subject {co-author}
end