Closed LukaHuang closed 8 years ago
root "dashboad#index"
get "dashboard/admin" => "dashboad#index"
get "/" => "dashboad#index"
get "/" => redirect("/dashboard/admin")
不曉得你要的是 redirect,還是說不同路徑,要有相同的行為。
@chinghanho 大大您好 我是想要把"dashboard/admin "的網址對應到"/" 方便測試
看來似乎得用get "/" => "/dashboar/admin/"
如題我想讓根目錄網址對應到dashboard/admin但是不知道如何撰寫route.rb