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
精彩评论