Commit 1ec2db23 by thanhnd

toppage 20200224 2

parent 1dd5543f
......@@ -2,8 +2,6 @@ class ToppageController < ApplicationController
def index
@totaljob = Job.all.count
@latestjobs = Job.order(:last_updated).first(5)
@topjobbyindustry = Job.select("industry_id, job_name").
#@topindustry = Industry.where(INNER JOIN Job ON Job.industry_id = Industry.id).count(industry_name).order("orders_count DESC")
end
end
......@@ -34,12 +34,6 @@
<font color="red"><b><label > Top Industries:</label></b></font>
<% @topjobbyindustry.each do |j| %>
<ul>
<li><%= j.industry_id %></li>
</ul>
<% 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