ruby on rails - Devise telling me "Email already taken" when I try to register my name and email. -


i'm new programming, , have been learning ruby on rails 12 weeks.

i have devise users/sign_up page on app now, , after entering name , password, tells me check email account confirmation message. message never came, did research , debugging, , think problem may solved. however, can't use same email try out fix, because when register again, "1 error prohibited user being saved: email taken." (i did research on here on stackoverflow, think answers may old - can't see talking in of devise files.) there way can clear out email can enter register again?

you can delete user in database.

first, connect database running rails console in terminal.

then, can find , delete user running query

user.find_by(email: 'foo@bar.com').destroy 

this article worth read on rails finder methods. http://api.rubyonrails.org/classes/activerecord/findermethods.html


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -