ruby - Trying to add validation to rails devise sign-up page -


kinda noob rails programmer, save me ton of headache. currently, i'm trying add validation devise sign on page, such allowing sign complete if email ends extension. know file location stands overlooks sign on page? i've looked on models , views can't seem find it. thank you!

i think can use validates_format_of in user.rb model. can use rubular.com create regex.

validates_format_of :email, :with => /myregexhere/ 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -