我要为我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/
它似乎在做资源:用户只创建索引/显示/获取的东西,所以我很困惑如何做到这一点,而不是在路线中创建如此多的线路。