All threads / Rails for Beginners Part 14: Handling Sign Up Errors Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Rails for Beginners Part 14: Handling Sign Up Errors Discussion

Love these Chris, noting some new tricks along the way. Plus your always positive demeanour makes this so enjoyable to go through.

Reply

If you're finding that you don't get 'Thanks!' back after setting up your create method, add local: true to your form.

Thanks for pointing that out, local: true resolves it

Reply

I could not use @user.errors.any? in rails console.

but if I use [email protected]? Maybe it is my ruby version it is not the 3 but the 2.7... but my rails is 6.1.1 .
The error is in minute 6:37 <% if user = @user.errors.any? %>

Very sorry my wrong here. I did not saved the data bank so it was empty. Very sorry.

Reply

hi, when I click sign up nothing happens, why :( ?

Reply

Solution please!!!
when i create the account with already existing email ,, then it does not give an error.
already existing email validation is not working.

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 43,185+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.