Commit 1f4b8912 by Tô Ngọc Ánh

id3 industries list

parent 7a3fadae
class IndustriesController < ApplicationController
def index
@industries = Industry.all
end
end
......@@ -25,7 +25,7 @@
<h1>Top Industries</h1>
<hr>
<div class='row'>
<%= render partial: 'home/industry', collection: @top_industries, as: :industry %>
<%= render partial: 'industries/industry', collection: @top_industries, as: :industry %>
</div>
<a href='#'>All Industries</a>
<a href='<%= industries_path %>'>All Industries</a>
</div>
<% if industry.jobs.size.positive? %>
<div class='col-4 my-2'>
<div class='card'>
<%= link_to '#', class: 'card-body text-decoration-none' do %>
......@@ -6,3 +7,4 @@
<% end %>
</div>
</div>
<% end %>
<div id='industries' class='text-center my-3'>
<h2>Industries List</h2>
<hr>
<div class='row'>
<%= render partial: 'industries/industry', collection: @industries %>
</div>
</div>
\ No newline at end of file
Rails.application.routes.draw do
root to: 'home#index'
get 'cities', to: 'locations#index'
get 'industries', to: 'industries#index'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
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