的名字,我有一个嵌套的资源,这样什么params用于在嵌套资源
resources :profiles do
resources :albums do
resources :images
end
end
match ':username' => "profiles#show", :as => 'profile'
从而例如特定图像的URL是
http://localhost:3000/profiles/Azzurrio/albums/4/images/1
我不能使用内部资料会员名称我模板,当我使用参数[:用户名]它不起作用,所以任何人都可以告诉我如何处理这个参数?
我不知道。有趣! – Davidann