rename some files

parent b44e228c
...@@ -2,7 +2,6 @@ class JobsController < ApplicationController ...@@ -2,7 +2,6 @@ class JobsController < ApplicationController
before_action :use_variables before_action :use_variables
def index def index
@jobs_list = Job.all_job.page(params[:page]).per(20) @jobs_list = Job.all_job.page(params[:page]).per(20)
end end
......
...@@ -20,7 +20,7 @@ class Job < ApplicationRecord ...@@ -20,7 +20,7 @@ class Job < ApplicationRecord
scope :all_job, -> { limit(20).order(created_at: :desc) } scope :all_job, -> { limit(20).order(created_at: :desc) }
def convert_job def convert_job
self.converted_name = Convert.to_convert("#{title}") converted_name = Convert.to_convert("#{title}")
end end
def company_name def company_name
......
<div class="col-3 remove-decoration">
<%= link_to city_jobs_path(converted_name: city.converted_name) do %>
<div class="border border-dark rounded vn-name">
<div>
<strong><%= city.name %></strong>
</div>
<div>
<%= city.jobs.count %>
</div>
</div>
<% end %>
</div>
<div class="col-3 remove-decoration">
<%= link_to city_jobs_path(converted_name: city.convert_name) do %>
<div class="border border-dark rounded international-name">
<div>
<strong><%= city.name %></strong>
</div>
<div>
<%= city.jobs.count %>
</div>
</div>
<% end %>
</div>
<div class="col-3 remove-decoration">
<%= link_to industry_jobs_path(converted_name: industry.converted_name) do %>
<div class="border border-dark rounded industry-details">
<div>
<strong><%= industry.name %></strong>
</div>
<div>
<%= industry.jobs.count %>
</div>
</div>
<% end %>
</div>
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