模式二里面的链接问题

This commit is contained in:
huang 2016-05-06 20:36:06 +08:00
parent 967a76af67
commit cd0603f01b
3 changed files with 6 additions and 5 deletions

View File

@ -10,6 +10,7 @@ class SubDocumentComment < ActiveRecord::Base
has_many :org_acts, :class_name => 'OrgActivity',:as =>:org_act ,:dependent => :destroy
after_create :document_save_as_sub_activity
after_update :update_activity
validates_presence_of :content
#动态的更新
private

View File

@ -1,9 +1,9 @@
<div class="sn-innner-content">
<div class="sn-row sn-bg-white">
<div class="sn-content-position sn-hidden"> 您的位置:<%= link_to "首页", organization_path(@organization), :class => "sn-link-grey2" %> &gt;
<%= @org_subfield.name %> &gt;
<%= link_to @subdomain.name, org_subfield_sub_domain_path(@subdomain), :class => "sn-link-grey2" %> &gt;
<%= link_to @document.title, org_subfield_sub_domain_sub_document_comment_path(@document), :class => "sn-link-grey2" %> </div>
<%=link_to @org_subfield.name, organization_path(@organization, :org_subfield_id => @org_subfield.id), :class => "sn-link-grey2" %> &gt;
<%= link_to @subdomain.name, org_subfield_sub_domain_sub_document_comments_path(:sub_domain_id => @subdomain.id, :org_subfield_id => @org_subfield.id), :class => "sn-link-grey2" %> &gt;
<a class = "sn-link-grey2"><%= @document.title %></a></div>
</div>
<div class="sn-inner-newslist">
<h2 class="sn-inner-newsh2 sn-hidden"><%= @document.title %></h2>

View File

@ -3,8 +3,8 @@
<div class="sn-row sn-bg-white">
<div class="sn-content-position">
您的位置:<%= link_to "首页", organization_path(@organization), :class => "sn-link-grey2" %> &gt;
<%= @org_subfield.name %> &gt;
<%= link_to @subdomain.name, org_subfield_sub_domain_path(@subdomain, :org_subfield_id => @org_subfield.id), :class => "sn-link-grey2" %>
<%=link_to @org_subfield.name, organization_path(@organization, :org_subfield_id => @org_subfield.id), :class => "sn-link-grey2" %> &gt;
<%= link_to @subdomain.name, org_subfield_sub_domain_sub_document_comments_path(:sub_domain_id => @subdomain.id, :org_subfield_id => @org_subfield.id), :class => "sn-link-grey2" %>
</div>
</div>
<div class="sn-inner-newslist">