默认进入第一讨论区..

exceptionHandle
yanxd 12 years ago
parent f14f73414e
commit c74c7c44d1

@ -29,6 +29,7 @@ class BoardsController < ApplicationController
def index
@boards = @project.boards.includes(:last_message => :author).all
@boards = [] << @boards[0]
if @boards.size == 1
@board = @boards.first
show and return

Loading…
Cancel
Save