Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VenJob
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
1
Merge Requests
1
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 Sỹ Hoàng
VenJob
Commits
dfd34b1a
Commit
dfd34b1a
authored
Dec 18, 2019
by
Đường Sỹ Hoàng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit resource
parent
13074699
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
app/controllers/top_controller.rb
+2
-2
app/views/top/_job.html.erb
+0
-0
app/views/top/index.html.erb
+1
-1
config/routes.rb
+2
-2
No files found.
app/controllers/
jobs
_controller.rb
→
app/controllers/
top
_controller.rb
View file @
dfd34b1a
class
Jobs
Controller
<
ApplicationController
def
home
class
Top
Controller
<
ApplicationController
def
index
@latest_jobs
=
Job
.
latest_jobs
.
take
(
5
)
@top_cities
=
City
.
sort_top_cities
.
take
(
9
)
end
...
...
app/views/
jobs
/_job.html.erb
→
app/views/
top
/_job.html.erb
View file @
dfd34b1a
File moved
app/views/
jobs/home
.html.erb
→
app/views/
top/index
.html.erb
View file @
dfd34b1a
...
...
@@ -14,7 +14,7 @@
</div>
<div
class=
"row row-cols-1"
>
<div
class=
"Job-content-wrapper"
>
<%=
render
partial:
"
jobs
/job"
,
collection:
@latest_jobs
%>
<%=
render
partial:
"
top
/job"
,
collection:
@latest_jobs
%>
</div>
</div>
</br>
...
...
config/routes.rb
View file @
dfd34b1a
Rails
.
application
.
routes
.
draw
do
root
"
jobs#home
"
resource
:
jobs
root
"
top#index
"
resource
:
top
,
only: :index
devise_for
:users
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