【发布时间】:2013-05-29 15:25:11
【问题描述】:
我在我的 rails 应用程序中使用 devise 来进行用户注册/登录。注册时,我想将用户重定向到其个人资料页面。
我做了 rake 路由和编辑,root 是:
/profiles/:id/edit
我在注册控制器中写了这个:
def after_sign_up_path_for(resource)
'http://localhost:3000/profiles/#{resource.id}/edit'
end
但它不起作用。有人可以帮忙吗?
【问题讨论】: