Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_nth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ngô Trung Hưng
venjob_nth
Commits
125cc119
Commit
125cc119
authored
Aug 06, 2020
by
Ngô Trung Hưng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix name method page_not_found
parent
d66ca2b0
Pipeline
#825
canceled with stages
in 0 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
app/controllers/error_controller.rb
+1
-1
app/views/error/internal_server_error.html.erb
+1
-0
app/views/error/page_not_found.html.erb
+1
-0
config/routes.rb
+1
-1
No files found.
app/controllers/error_controller.rb
View file @
125cc119
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# Controller error
# Controller error
class
ErrorController
<
ApplicationController
class
ErrorController
<
ApplicationController
def
fil
e_not_found
;
end
def
pag
e_not_found
;
end
def
internal_server_error
;
end
def
internal_server_error
;
end
end
end
app/views/error/internal_server_error.html.erb
View file @
125cc119
<%
provide
(
:title
,
'Internal Server Error'
)
%>
<div
class=
"box_content_404"
>
<div
class=
"box_content_404"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"col-lg-12"
>
<div
class=
"col-lg-12"
>
...
...
app/views/error/
fil
e_not_found.html.erb
→
app/views/error/
pag
e_not_found.html.erb
View file @
125cc119
<%
provide
(
:title
,
'Page Not Found'
)
%>
<div
class=
"box_content_404"
>
<div
class=
"box_content_404"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"col-lg-12"
>
<div
class=
"col-lg-12"
>
...
...
config/routes.rb
View file @
125cc119
...
@@ -9,6 +9,6 @@ Rails.application.routes.draw do
...
@@ -9,6 +9,6 @@ Rails.application.routes.draw do
get
'jobs/:model/:slug'
,
to:
'job#index'
,
as: :jobs
get
'jobs/:model/:slug'
,
to:
'job#index'
,
as: :jobs
# Rails error
# Rails error
match
'/404'
,
to:
'error#
fil
e_not_found'
,
via: :all
match
'/404'
,
to:
'error#
pag
e_not_found'
,
via: :all
match
'/500'
,
to:
'error#internal_server_error'
,
via: :all
match
'/500'
,
to:
'error#internal_server_error'
,
via: :all
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment