From 225f25f04cae110bbeda87ccb2c59cc3cf2ff442 Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 13 May 2014 15:54:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8C=87=E5=AE=9Autf8=EF=BC=8C=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E7=BC=96=E7=A0=81=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20140508030039_create_attachmentstypes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrate/20140508030039_create_attachmentstypes.rb b/db/migrate/20140508030039_create_attachmentstypes.rb index c8cfdd9dd..39ee703a7 100644 --- a/db/migrate/20140508030039_create_attachmentstypes.rb +++ b/db/migrate/20140508030039_create_attachmentstypes.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 class CreateAttachmentstypes < ActiveRecord::Migration def self.up create_table :attachmentstypes do |t| From 603010c30a967de4507cc875f6d01cde5f333571 Mon Sep 17 00:00:00 2001 From: yanxd Date: Wed, 14 May 2014 11:22:59 +0800 Subject: [PATCH 2/2] remove map --- app/views/welcome/course.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb index 005f53710..eef2401f8 100644 --- a/app/views/welcome/course.html.erb +++ b/app/views/welcome/course.html.erb @@ -60,7 +60,7 @@

新开课程

- <% if(find_miracle_course(10, 7,params[:school_id]).map.count == 0) %> + <% if(find_miracle_course(10, 7,params[:school_id]).count == 0) %> <%= link_to "更多>>", {:controller => 'projects', :action => 'course', :project_type => 1, :school_id => nil} %>