Slide 17
Slide 17 text
Engine
App
Rails.application.routes.draw do
controller :pages do
get “/about”, to: :about
get “/terms”, to: :terms
end
resources :songs
!
!
end
Rails.application.routes.draw do
controller :pages do
get “/about”, to: :about
get “/terms”, to: :terms
end
resources :songs
!
mount Legacy::Engine, at: “/”
end
Legacy::Engine.routes.draw do
get “/start” => redirect(“/”)
get “/about-us” => redirect(“/about”)
get “/home” => redirect(“/about”)
resources :tracks, controller: :songs
end