diff --git a/app/controllers/organizations_controller.rb b/app/controllers/organizations_controller.rb index 8be34a318..66e3d6e05 100644 --- a/app/controllers/organizations_controller.rb +++ b/app/controllers/organizations_controller.rb @@ -93,7 +93,7 @@ class OrganizationsController < ApplicationController end # 热门项目 if @organization.org_subfields.where(:field_type => "Comppro", :hide => 0).count > 0 - @excellent_projects = Course.where(:is_public => true, :status => true, :hot => true) + @excellent_projects = Project.where(:is_public => true, :status => true, :hot => true) end # 最新动态, 来自我关联的项目和课程 if @organization.org_subfields.where(:field_type => "Compact", :hide => 0).count > 0 diff --git a/app/views/organizations/_org_custom_right2.html.erb b/app/views/organizations/_org_custom_right2.html.erb index 7bb2cbf93..335087731 100644 --- a/app/views/organizations/_org_custom_right2.html.erb +++ b/app/views/organizations/_org_custom_right2.html.erb @@ -3,18 +3,18 @@ <% if containers.blank? %>
该模块暂时没有相关内容
<% else %> - <% container = cotainers.first %> + <% container = containers.first %>