Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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?

like image 955
snitko Avatar asked Feb 10 '11 06:02

snitko


1 Answers

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
like image 165
Mauricio Avatar answered Nov 11 '22 13:11

Mauricio