Status codes for errors, New error pages

This commit is contained in:
Dmitriy Zaporozhets 2012-02-23 21:04:20 +02:00
parent 7d279f9302
commit 81092c0198
6 changed files with 71 additions and 41 deletions

View file

@ -114,6 +114,7 @@ class ProjectsController < ApplicationController
def project
@project ||= Project.find_by_code(params[:id])
@project || render_404
end
def determine_layout