nova
k
u
n
Experiments
Game's Portfolio
Rails Portfolio
Blog
Log In
Experiments
Game's Portfolio
Rail's Portfolio
Blog
Log In
How can you create a redirect in routes.rb?
Select the correct way to redirect one path to another.
route '/old', redirect_to: '/new'
get '/old', redirect: '/new'
get '/old', to: redirect('/new')
redirect '/old' => '/new'
Question 1 of 10