Commit 6146f29f by Hoang Phuc

Show data Top page

parent 5d2b9321
Pipeline #546 failed with stages
in 0 seconds
...@@ -41,6 +41,7 @@ group :development do ...@@ -41,6 +41,7 @@ group :development do
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring' gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0' gem 'spring-watcher-listen', '~> 2.0.0'
gem 'pry'
end end
group :test do group :test do
......
...@@ -74,6 +74,7 @@ GEM ...@@ -74,6 +74,7 @@ GEM
regexp_parser (~> 1.5) regexp_parser (~> 1.5)
xpath (~> 3.2) xpath (~> 3.2)
childprocess (3.0.0) childprocess (3.0.0)
coderay (1.1.2)
concurrent-ruby (1.1.6) concurrent-ruby (1.1.6)
crass (1.0.6) crass (1.0.6)
erubi (1.9.0) erubi (1.9.0)
...@@ -120,6 +121,9 @@ GEM ...@@ -120,6 +121,9 @@ GEM
mini_portile2 (~> 2.4.0) mini_portile2 (~> 2.4.0)
nokogiri (1.10.9-x86-mingw32) nokogiri (1.10.9-x86-mingw32)
mini_portile2 (~> 2.4.0) mini_portile2 (~> 2.4.0)
pry (0.13.0)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.3) public_suffix (4.0.3)
puma (4.3.3) puma (4.3.3)
nio4r (~> 2.0) nio4r (~> 2.0)
...@@ -238,6 +242,7 @@ DEPENDENCIES ...@@ -238,6 +242,7 @@ DEPENDENCIES
jbuilder (~> 2.7) jbuilder (~> 2.7)
listen (>= 3.0.5, < 3.2) listen (>= 3.0.5, < 3.2)
mysql2 mysql2
pry
puma (~> 4.1) puma (~> 4.1)
rails (~> 6.0.2, >= 6.0.2.2) rails (~> 6.0.2, >= 6.0.2.2)
sass-rails (>= 6) sass-rails (>= 6)
......
...@@ -6634,7 +6634,7 @@ noscript~ul.resumes .resume:first-child { ...@@ -6634,7 +6634,7 @@ noscript~ul.resumes .resume:first-child {
.jobify_widget_jobs .job_listing-date, .jobify_widget_jobs .job_listing-date,
.jobify_widget_jobs .resume-date { .jobify_widget_jobs .resume-date {
display: none display: block;
} }
.job-type, .job-type,
......
class HomeController < ApplicationController class HomeController < ApplicationController
def index def index
@amount_job = Job.count
@latest_10_jobs = Job.last(10)
@latest_8_cities = City.last(8)
@latest_8_industries = Industry.last(8)
end end
end end
...@@ -3,6 +3,7 @@ Rails.application.routes.draw do ...@@ -3,6 +3,7 @@ Rails.application.routes.draw do
root to: 'home#index' root to: 'home#index'
get '/jobs/', to: 'job#index' get '/jobs/', to: 'job#index'
get '/job/:id', to: 'job#show'
get '/cities/', to: 'city#index' get '/cities/', to: 'city#index'
get '/industries/', to: 'industry#index' get '/industries/', to: 'industry#index'
get '/signup/', to: 'user#signup' get '/signup/', to: 'user#signup'
......
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