nova
k
u
n
Experiments
Game's Portfolio
Rails Portfolio
Blog
Log In
Experiments
Game's Portfolio
Rail's Portfolio
Blog
Log In
How do you route requests for a specific subdomain?
Choose the correct method to restrict routes to a subdomain.
routes only: { subdomain: 'admin' }
get 'admin', subdomain: true
constraints subdomain: 'admin' do ... end
mount subdomain => admin
Question 1 of 10