[英]How to change url path to ruby on rails controller?
I'm trying to create Ruby on Rails 3 application and have a question. 我正在尝试创建Ruby on Rails 3应用程序,并且有一个问题。 I have created "Profile" controller that is accessible via following url - "/profile" - that is fine.
我创建了“个人资料”控制器,可以通过以下网址访问它-“ / profile”-很好。 After that I have added "Product" controller that is now accessible via "/products" url.
之后,我添加了“产品”控制器,现在可以通过“ / products” URL访问该控制器。
How to make Product's controller accessible via next url - "/profile/products" ? 如何通过下一个URL-“ / profile / products”访问产品的控制器?
Thanks in advance for your help ! 在此先感谢您的帮助 !
看看嵌套资源
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.