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') %>