class HomeController < ApplicationController
def greeter
end
def pharaoh
@pharaoh = 'Come and meet the Kings of Egypt!'
@kings = ['Matthew', 'Nate']
end
end
<h3>Hello!</h3>
<p> <%= @pharaoh %> </p>
<ul>
<% @kings.each do |king| %>
<% end %>
<li><%= link_to 'Matthew', '/matthew' %></li>
<li><%= link_to 'Nate', '/nate' %></li>
</ul>
- Snowboarding
- Traveling
- Concerts/Festivals
- Chargers Football
- Gaming
- Pizza
Rails.application.routes.draw do
get '/greeter' => 'home#greeter'
# root to: 'home#greeter'
get '/pharaoh' => 'home#pharaoh'
root to: 'home#pharaoh'
get '/matthew' => 'home#matthew'
get '/nate' => 'home#nate'
end