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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -