validates_formatting_of
validates_formatting_of copied to clipboard
Common Rails validations wrapped in a gem.
Here's a good definition of valid phone numbers that a lot of people use for testing: https://github.com/stympy/faker#fakerphonenumber It would be good if that list is supported. As of this writing...
What do you think? default i18n scope activerecord `$RAILS_APP/config/locales/en.yml` ``` yml en: activerecord: errors: messages: email: "is not a valid email" simple_email: "is not a valid email" url: "is not...
Now can to use validates_formatting_of or sexy validates style in Mongoid without including. e.g ``` ruby class Address include Mongoid::Document field :email, type: String validates_formatting_of :email # or # validates...
An error is produced when using validates_formatting_of with a Rails Engine by including it in the [engine].gemspec file. ``` # Describe your gem and declare its dependencies: Gem::Specification.new do |s|...