Status codes for errors, New error pages
This commit is contained in:
parent
7d279f9302
commit
81092c0198
6 changed files with 71 additions and 41 deletions
|
@ -114,6 +114,7 @@ class ProjectsController < ApplicationController
|
|||
|
||||
def project
|
||||
@project ||= Project.find_by_code(params[:id])
|
||||
@project || render_404
|
||||
end
|
||||
|
||||
def determine_layout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue