修改课程讨论区报错

This commit is contained in:
sw 2015-04-24 14:57:44 +08:00
parent f67bdae22a
commit 54ef7e3325
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class BoardsController < ApplicationController
@boards = @course.boards.includes(:last_message => :author).all
end
end
if @boards.size == 1
unless @course.boards.empty?
@board = @course.boards.first
end
show and return