diff --git a/app/models/course.rb b/app/models/course.rb index f3f89273f..6c546f591 100644 --- a/app/models/course.rb +++ b/app/models/course.rb @@ -362,7 +362,7 @@ class Course < ActiveRecord::Base if mod.blank? type = ["news", "boards", "attachment", "homework", "poll", "exercises", "statistics"] for i in 0..6 - CourseModule.create(:course_id => self.id, :type => type[i], :position => i + 1, :hidden => 0 ) + CourseModule.create(:course_id => self.id, :module_type => type[i], :position => i + 1, :hidden => 0 ) end mod = self.course_modules end diff --git a/app/views/syllabuses/index.html.erb b/app/views/syllabuses/index.html.erb index c17f29d11..7868f6fab 100644 --- a/app/views/syllabuses/index.html.erb +++ b/app/views/syllabuses/index.html.erb @@ -23,7 +23,7 @@

- @@ -93,6 +93,5 @@ }) });*/ - });