diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb
index 005f5371..eef2401f 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} %>
diff --git a/db/migrate/20140508030039_create_attachmentstypes.rb b/db/migrate/20140508030039_create_attachmentstypes.rb
index c8cfdd9d..39ee703a 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|