From 9f1c03ee10abeb378d3c36744aa7f3351ed12ba8 Mon Sep 17 00:00:00 2001 From: xianbo Date: Thu, 21 Nov 2013 10:48:11 +0800 Subject: [PATCH] fix edit about forum --- app/controllers/boards_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index 296fb508c..d079ee31f 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -100,12 +100,12 @@ class BoardsController < ApplicationController end def edit + if @project.project_type == 1 + render :layout => 'base_courses' + end end def update - if @project.project_type ==1 - render :layout => 'base_courses' - end @board.safe_attributes = params[:board] if @board.save redirect_to_settings_in_projects