Alok Rai

Joined

1,510 Experience
15 Lessons Completed
0 Questions Solved

Activity

An alternative to using the Regex can be using a built-in Ruby constant

validates :email, format: { with: URI::MailTo::EMAIL_REGEXP, message: 'invalid email address provided' }

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.