From 09b98cbcc67e107398fa9dc687b49f7466b734f6 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 19 Aug 2013 08:44:01 +0800 Subject: [PATCH] =?UTF-8?q?tag=20search=20bugs=20modified=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects_controller.rb | 1 - app/views/layouts/base_projects.html.erb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 6254c24b..84417858 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -368,7 +368,6 @@ class ProjectsController < ApplicationController else render :layout => "base" end - # hide project in layout @project = nil end diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index e0df12a0..6b6bfcf8 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -28,7 +28,7 @@
- <% @project = Project.find(@project.id)%> + <% @project = Project.find_by_id(@project.id)%>
<%= link_to image_tag(url_to_avatar(@project), :class => 'avatar2') %>