Commit 4864e811 by Đường Sỹ Hoàng

Fixed scss & cityjob model

parent cfd5dba8
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -46,11 +46,6 @@ h1, h2, h3, h4, h5, h6 {
background: #01548c;
}
.count-total {
margin-right: 500px;
margin-left: 500px;
}
.col {
padding: 5px;
margin: 5px;
......@@ -70,6 +65,5 @@ h1, h2, h3, h4, h5, h6 {
}
.form-inline-city {
margin-left: 1000px;
padding: 5px;
}
......@@ -2,7 +2,7 @@
<head>
<title><%= yield(:title) %> Venjob</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<div class="count-total">
<div class="text-center">
<h4>Total Jobs:<%= Job.count %></h4>
</div>
</head>
......
......@@ -25,9 +25,7 @@ require "csv"
city_params = { region: row["work place"] }
city = City.find_or_initialize_by(name: row["company province"])
city.update(city_params)
city_job_params = { city_id: city.id }
city_job = CityJob.find_or_initialize_by(job_id: job.id)
city_job.update(city_job_params)
CityJob.find_or_create_by(job_id: job.id, city_id: city.id)
rescue
import_logger = ActiveSupport::Logger.new("log/import.log")
import_logger.error "Skip #{row}"
......
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