开发者

What is the name of the path helper for a sign_in page in Devise?

I couldn't really find this in the documentation. Only开发者_如何学Go thing I've found is a after_sign_in_path_for method. What I want though is something like sign_in_path_for(:account) so that I wouldn't have to hardcode "/account/sign_in" path in. Any ideas if Devise has this kind of thing?


this depends on the scope, if yours is 'account' then

new_account_session_path

you can see all the routes that devise creates doing a

$ rake routes
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜