layout selected by controller name

This commit is contained in:
Cyril 2012-09-26 22:24:52 +02:00
parent 078a8f0e66
commit bdf317addc
7 changed files with 12 additions and 30 deletions

View file

@ -8,6 +8,8 @@ class ProjectsController < ProjectController
before_filter :authorize_admin_project!, only: [:edit, :update, :destroy]
before_filter :require_non_empty_project, only: [:blob, :tree, :graph]
layout 'application', only: [:new, :create]
def new
@project = Project.new
end