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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With