Commit 125cc119 by Ngô Trung Hưng

fix name method page_not_found

parent d66ca2b0
Pipeline #825 canceled with stages
in 0 seconds
......@@ -2,7 +2,7 @@
# Controller error
class ErrorController < ApplicationController
def file_not_found; end
def page_not_found; end
def internal_server_error; end
end
<% provide(:title, 'Internal Server Error') %>
<div class="box_content_404">
<div class="container">
<div class="col-lg-12">
......
<% provide(:title, 'Page Not Found') %>
<div class="box_content_404">
<div class="container">
<div class="col-lg-12">
......
......@@ -9,6 +9,6 @@ Rails.application.routes.draw do
get 'jobs/:model/:slug', to: 'job#index', as: :jobs
# Rails error
match '/404', to: 'error#file_not_found', via: :all
match '/404', to: 'error#page_not_found', via: :all
match '/500', to: 'error#internal_server_error', via: :all
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment