ruby on rails - Automatic log out in Devise -
i trying make signup form devise using form below
<%= form_for :user , url: user_registration_path |f| -%> please add email adderess added our mailing list <%= f.text_field :email %> <%= f.submit "submit", :disable_with => 'submiting...' %> <% end -%>
however, devise signing users in automatically. please can advise on how can sign users out automatically when account created without redirecting them sign_out_path or adding sign out link.
you override after_signup_path_for(resource) method shown in answer: https://stackoverflow.com/a/5466245/367869. in method make call
sign_out current_user
however, agree user136060's comment question - if you're doing mailing list, devise overkill.
Comments
Post a Comment