【发布时间】:2016-06-20 12:33:18
【问题描述】:
我想为注册的用户创建个人资料页面
所以假设一个用户已经注册,他的个人资料链接应该是
website.com/profile/username
并且在
views/profile/index.html.erb
我猜每个用户都应该看到自己的个人资料并使用 form_for 进行编辑
到目前为止,我有 profiles_controller.rb、profile.rb 模型和 resources :profilesfor my routes.rb
最好的方法是什么?
【问题讨论】:
标签: ruby-on-rails routes slug