a guest Dec 11th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # app/models/user.rb
- # Only allow letter, number, underscore and punctuation.
- validates_format_of :username, with: /^[a-zA-Z0-9_\.]*$/, :multiline => true
RAW Paste Data