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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -