Nic Lin's Blog

喜歡在地上打滾的 Rails Developer

routing 的 namespace

路徑的前綴詞

namespace :admin do resources :products end

可以reach到的路徑就會是admin/products

Share Comments
comments powered by Disqus