我要爲我UserController的以下網址:我想下面的網址模式,請幫我用導軌3
localhost/user/join
localhost/user/login
localhost/user/user_name (this can be any name in here, it should fire the 'profile' action)
然後/用戶/ user_name_here /文件夾中的我想:
/user/user_name/blah1/
/user/user_name/blah2/
/user/user_name/blah3/
它似乎在做資源:用戶只創建索引/顯示/獲取的東西,所以我很困惑如何做到這一點,而不是在路線中創建如此多的線路。